From a0a8c4624f530d831e2e209e60deb67a83ef2707 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 16 Apr 2025 11:21:26 -0400 Subject: [PATCH] fix: posts incorrectly excluded from results if result pid is in a remote category --- src/privileges/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);