remove cid=-1

This commit is contained in:
Barış Soner Uşaklı
2024-04-25 11:25:50 -04:00
parent 9829a5300e
commit a853dabdc4

View File

@@ -89,6 +89,7 @@ module.exports = function (Topics) {
cids = await privileges.categories.filterCids('topics:read', cids, uid);
} else {
cids = await categories.getCidsByPrivilege('categories:cid', uid, 'topics:read');
cids = cids.filter(cid => cid !== -1);
}
const pids = await db.getSortedSetRevRangeByScore(