mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fix: posts incorrectly excluded from results if result pid is in a remote category
This commit is contained in:
@@ -86,7 +86,7 @@ privsPosts.filter = async function (privilege, pids, uid) {
|
||||
post.topic = tidToTopic[post.tid];
|
||||
}
|
||||
return tidToTopic[post.tid] && tidToTopic[post.tid].cid;
|
||||
}).filter(cid => parseInt(cid, 10));
|
||||
}).filter(cid => utils.isNumber(cid) ? parseInt(cid, 10) : cid);
|
||||
|
||||
cids = _.uniq(cids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user