Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop

This commit is contained in:
Barış Soner Uşaklı
2026-02-09 17:03:50 -05:00

View File

@@ -81,10 +81,9 @@ module.exports = function (Categories) {
return result && result.topicCount;
}
const set = await Categories.buildTopicsSortedSet(data);
console.log(set);
if (Array.isArray(set)) {
return await db.sortedSetIntersectCard(set);
} else if (parseInt(data.cid, 10) === -1 || data.targetUid && set) {
} else if (parseInt(data.cid, 10) === -1 || (data.targetUid && set)) {
return await db.sortedSetCard(set);
}
return data.category.topic_count;