mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
remove cid=-1
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user