mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +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
@@ -17,7 +17,7 @@ searchApi.categories = async (caller, data) => {
|
||||
let cids = [];
|
||||
let matchedCids = [];
|
||||
const privilege = data.privilege || 'topics:read';
|
||||
data.states = (data.states || ['watching', 'notwatching', 'ignoring']).map(
|
||||
data.states = (data.states || ['watching', 'tracking', 'notwatching', 'ignoring']).map(
|
||||
state => categories.watchStates[state]
|
||||
);
|
||||
data.parentCid = parseInt(data.parentCid || 0, 10);
|
||||
|
||||
Reference in New Issue
Block a user