Node.js based forum software built for the modern web
remove cid=-1
Barış Soner Uşaklıa853dabdc400
diff --git a/src/topics/sorted.js b/src/topics/sorted.jsindex 6c42d0c7ba..81f6f5be5a 100644--- a/src/topics/sorted.js+++ b/src/topics/sorted.js@@ -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(