In nodebb privileges section we can add the group for a particular category
so, Is there any api to get those category list which is having a particular group.
I would like to have most categories be ignored by default. So, for example, I might want this setup
I would even like to have the option of ignoring ALL categories by default, if that is the only way.
Thanks
@julian ?
@deiden26 it's not a simple change to accomplish that. Only the categories ignored are maintained at the user level.
You can create a plugin to listen for action hooks on new category creation and new user creation to do that.
On action:category.create
... get a list of all users and call User.ignoreCategory
for each user to add it to their ignoring categories list.
On action:user.create
... get a list of all categories and call User.ignoreCategory
for each category.
Obviously for all existing categories and users, you will have to write a one time script to do it.
@pichalite Thanks. I will just disable the Unread section for now.
@deiden26 said in Can one default categories to Ignoring instead of Watching?:
I would like to have most categories be ignored by default. So, for example, I might want this setup
- Announcements: Watching
- Questions: Ignoring
- General Discussion: Ignoring
I would even like to have the option of ignoring ALL categories by default, if that is the only way.
Thanks
didnt test
https://github.com/NodeBB/nodebb-plugin-category-optin
yes... that plugin does what I summarized except the existing categories and users part.
@exodo Thank you for finding that for me. That will be perfect