Skip to content

Node.js based forum software built for the modern web

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

Julian Lama0a8c4624f53
diff --git a/src/privileges/posts.js b/src/privileges/posts.js
index e289cb8414..09a06aee26 100644
--- a/src/privileges/posts.js
+++ b/src/privileges/posts.js
@@ -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);