mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: topics in remote categories showing up in /recent
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user