mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
feat: add tracking categories and make watching send notifications (#12147)
* feat: add tracking categories and make watching send notifications upgrade script to change the defaults * add missing spec * test: one more spec
This commit is contained in:
committed by
GitHub
parent
f8cc8548bb
commit
84fed97b41
@@ -24,9 +24,10 @@ categoriesController.get = async function (req, res) {
|
||||
|
||||
categoriesData.forEach((category) => {
|
||||
if (category) {
|
||||
category.isIgnored = states[category.cid] === categories.watchStates.ignoring;
|
||||
category.isWatched = states[category.cid] === categories.watchStates.watching;
|
||||
category.isTracked = states[category.cid] === categories.watchStates.tracking;
|
||||
category.isNotWatched = states[category.cid] === categories.watchStates.notwatching;
|
||||
category.isIgnored = states[category.cid] === categories.watchStates.ignoring;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ notificationsController.get = async function (req, res, next) {
|
||||
{ name: '[[global:topics]]', filter: 'new-topic' },
|
||||
{ name: '[[notifications:replies]]', filter: 'new-reply' },
|
||||
{ name: '[[notifications:tags]]', filter: 'new-topic-with-tag' },
|
||||
{ name: '[[notifications:categories]]', filter: 'new-topic-in-category' },
|
||||
{ name: '[[notifications:chat]]', filter: 'new-chat' },
|
||||
{ name: '[[notifications:group-chat]]', filter: 'new-group-chat' },
|
||||
{ name: '[[notifications:public-chat]]', filter: 'new-public-chat' },
|
||||
|
||||
Reference in New Issue
Block a user