If you are seeing [object Promise] in your output it could be due to a missing await or returning a promise instead of the html string. You didn't post the surrounding function this code is in or which plugin hook it is using so can't really tell what is causing it.
Tags endpoint does not display tags defined in the admin dashboard.
-
Hi guys, Using Nodebb v1.16.2, I am trying to display all tags defined in the dashboard to allow users to select tags.
The endpoint returns only tags used in posts but misses the ones defined in the admin dashboard. Is this behavior expected?here's my curl request.
curl -X GET -H 'Authorization: Bearer ******-4766-4ece-bc9c-46b3d62860d3' -v -i 'https://community.barqer.com/api/tags'
And response:
{ "tags": [{ "value": "limping", "score": 1, "valueEscaped": "limping", "color": "", "bgColor": "" }, { "value": "aussie", "score": 1, "valueEscaped": "aussie", "color": "", "bgColor": "" }], "displayTagSearch": false, "nextStart": 100, ...
Here are all the tags defined in the admin dashboard.
Suggested Topics
-
Wow Style tags in posts
Unsolved Technical Support -
-
-
-
Copyright © 2023 NodeBB | Contributors