fix: posts incorrectly excluded from results if result pid is in a remote category

This commit is contained in:
Julian Lam
2025-04-16 11:21:26 -04:00
parent d020e33422
commit a0a8c4624f

View File

@@ -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);