fix: topics in remote categories showing up in /recent

This commit is contained in:
Julian Lam
2025-03-25 10:44:08 -04:00
parent 0d77e860bf
commit 2f480e37ad

View File

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