Thanks, I will fix it.
Get Imgur-URL from Category Picture via JS?!
-
Hi,
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?Thx
-
Not sure if this helps you but
/api/category/2/category-name
route returns thecategory.image
as an url doesn't matter if it's uploaded locally or to imgur. -
Hi baris,
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
"backgroundImage": "https://i.imgur.com/fJGGuqS.jpg",
-
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