Does nodebb allow users to pick up their timezone? I did not find it in settings.
I think it would be a helpful feature, community users don't need translate time into their timezone.
Please advise if there is plug-in already. Thanks.
@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?
You can't get the current user data without their uid. If you have access to the express req object you can grab it with req.uid or if it is a socket call then its socket.uid. The value of uid is 0 if the user is not logged in.