mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: getSortedTopics; filter out topics in cid -1 unless explicitly asked for
This commit is contained in:
@@ -257,6 +257,7 @@ module.exports = function (Topics) {
|
||||
t &&
|
||||
t.cid &&
|
||||
!isCidIgnored[t.cid] &&
|
||||
(cids || parseInt(t.cid, 10) !== -1) &&
|
||||
(!cids || cids.includes(String(t.cid))) &&
|
||||
(!tags.length || tags.every(tag => t.tags.find(topicTag => topicTag.value === tag)))
|
||||
)).map(t => t.tid);
|
||||
|
||||
Reference in New Issue
Block a user