From 58580d4e485e25627bd7c5c75f160b7f5ffcd45d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 25 Mar 2025 10:44:08 -0400 Subject: [PATCH] fix: topics in remote categories showing up in /recent --- src/topics/recent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/recent.js b/src/topics/recent.js index 8cc84c54c7..2c8d8943a4 100644 --- a/src/topics/recent.js +++ b/src/topics/recent.js @@ -75,7 +75,7 @@ module.exports = function (Topics) { // Topics in /world are excluded from /recent const cid = await Topics.getTopicField(tid, 'cid'); - if (cid === -1) { + if (!utils.isNumber(cid) || cid === -1) { return await db.sortedSetRemove('topics:recent', data.tid); }