Is it possible to set user reputation via the write API?
Alternatively, it is possible to bypass posting restrictions when posting via the write API?
I know I could add my moderators to a group and make that group visible. But I'd like to make their moderator status only visible in the category they are moderating. For this I would need to create several groups and manage them independently from the rights. Is there already such a possibility in NodeBB core or via a plugin? I can't find anything.
Otherwise I think it could be done via the hook filter:topics.addPostData
? Just iterate over the posts array, get the category, and for every user of a post add an object to custom_profile_info
with the property content
set to some HTML indicating moderator rights?
@dravere said in Is there a way to display moderator rights only in category the user is a moderator?:
Otherwise I think it could be done via the hook filter:topics.addPostData? Just iterate over the posts array, get the category, and for every user of a post add an object to custom_profile_info with the property content set to some HTML indicating moderator rights?
Probably this... alternatively, use the groups method, but hook into filter:topics.addPostData
to remove the group badge if they're not in the category that user moderates?