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:
Barış Soner Uşaklı
2024-01-30 17:47:06 -05:00
committed by GitHub
parent ef06be6d3f
commit 45cfb3691e
15 changed files with 107 additions and 39 deletions

View File

@@ -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];
};