Is there a way to get categories by list of category ids with read or write API or I have to make N number of calls to get the categories that I want or there is another way to achieve that?
Which is the simplest way to get 'isSection' and 'link' properties of categories to render 'account/categories' pages ? I need them for my account/categories.tpl template.
Thanks in advance for help !
The id you send should identify the user in your system. The plugin will store a map of NodeBB user id to your id for synchronization.
Due to how the backend is structured, it is not possible to customise the url format (at least, not the /topic part). Removal of the slug is potentially doable, however.
nvm, I got it working. I was confused how async.each() worked..! 😣
here's what I ended up with:
Those userrs are stored in groups with special names, here are the names assuming the category id is 1.
You can get the user ids from these groups by.
Groups.getMembers('cid:1:privileges:find', 0, -1, callback); This will give you all the user ids that have the find permission for category 1.
If you want to get their basic info like username picture slug so you can show user icons you can just use Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);