mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +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
@@ -53,6 +53,7 @@ Categories.getCategoryById = async function (data) {
|
||||
category.nextStart = topics.nextStart;
|
||||
category.topic_count = topicCount;
|
||||
category.isWatched = watchState[0] === Categories.watchStates.watching;
|
||||
category.isTracked = watchState[0] === Categories.watchStates.tracking;
|
||||
category.isNotWatched = watchState[0] === Categories.watchStates.notwatching;
|
||||
category.isIgnored = watchState[0] === Categories.watchStates.ignoring;
|
||||
category.parent = parent;
|
||||
|
||||
Reference in New Issue
Block a user