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 0246c14643
commit c4274a3dca

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