mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
feat: show unread categories based on unread topics (#12317)
* feat: show unread categories based on unread topics if a category has unread topics in one of its children then mark category unread deprecate cid:<cid>:read_by_uid sets upgrade script to remove the old sets * chore: up harmony
This commit is contained in:
committed by
GitHub
parent
ef06be6d3f
commit
45cfb3691e
@@ -49,7 +49,7 @@ categoriesAPI.create = async function (caller, data) {
|
||||
await hasAdminPrivilege(caller.uid);
|
||||
|
||||
const response = await categories.create(data);
|
||||
const categoryObjs = await categories.getCategories([response.cid], caller.uid);
|
||||
const categoryObjs = await categories.getCategories([response.cid]);
|
||||
return categoryObjs[0];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user