Get Imgur-URL from Category Picture via JS?!
I'm trying to make my categories a little bit more personal.
Here's my question: Is there a way to get the picture-url of the category if it is saved on Imgur via JS? Or do you have any other ideas?
Not sure if this helps you but
/api/category/2/category-nameroute returns the
category.imageas an url doesn't matter if it's uploaded locally or to imgur.
are you sure that it works? I only get a "not-found" notification. :/
@Sobo85 Yeah, you won't see it here, because NodeBB doesn't use images, but from my api below.
The bit in question is
Okay, got it.
Have to go to bed. Tried the string "/api/category/2/category-name" instead of "/api/category/2/<category-name>" ^^
Oh haha yeah, that was just an example correct url would be https://community.nodebb.org/api/category/2/general-discussion