Node.js based forum software built for the modern web
fix: topic count not showing up on category page
Barış Soner Uşaklıdd3634462f4a
diff --git a/src/categories/topics.js b/src/categories/topics.jsindex 1eb188d73e..b4841200fd 100644--- a/src/categories/topics.js+++ b/src/categories/topics.js@@ -118,9 +118,9 @@ module.exports = function (Categories) {if (parseInt(cid, 10) === -1 && uid > 0) {set.add(`uid:${uid}:inbox`);}-+ const setValue = Array.from(set);const result = await plugins.hooks.fire('filter:categories.buildTopicsSortedSet', {- set: Array.from(set),+ set: set.size > 1 ? setValue : setValue[0],data: data,});return result && result.set;