mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: topic count on category page if filter is author
This commit is contained in:
@@ -86,6 +86,8 @@ module.exports = function (Categories) {
|
|||||||
const set = await Categories.buildTopicsSortedSet(data);
|
const set = await Categories.buildTopicsSortedSet(data);
|
||||||
if (Array.isArray(set)) {
|
if (Array.isArray(set)) {
|
||||||
return await db.sortedSetIntersectCard(set);
|
return await db.sortedSetIntersectCard(set);
|
||||||
|
} else if (data.targetUid && set) {
|
||||||
|
return await db.sortedSetCard(set);
|
||||||
}
|
}
|
||||||
return data.category.topic_count;
|
return data.category.topic_count;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user