mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: topic count not showing up on category page
This commit is contained in:
@@ -118,9 +118,9 @@ module.exports = function (Categories) {
|
|||||||
if (parseInt(cid, 10) === -1 && uid > 0) {
|
if (parseInt(cid, 10) === -1 && uid > 0) {
|
||||||
set.add(`uid:${uid}:inbox`);
|
set.add(`uid:${uid}:inbox`);
|
||||||
}
|
}
|
||||||
|
const setValue = Array.from(set);
|
||||||
const result = await plugins.hooks.fire('filter:categories.buildTopicsSortedSet', {
|
const result = await plugins.hooks.fire('filter:categories.buildTopicsSortedSet', {
|
||||||
set: Array.from(set),
|
set: set.size > 1 ? setValue : setValue[0],
|
||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
return result && result.set;
|
return result && result.set;
|
||||||
|
|||||||
Reference in New Issue
Block a user