diff --git a/src/categories/index.js b/src/categories/index.js index 5fb73e475f..ee999752fc 100644 --- a/src/categories/index.js +++ b/src/categories/index.js @@ -57,9 +57,11 @@ Categories.getCategoryById = async function (data) { category.isIgnored = watchState[0] === Categories.watchStates.ignoring; category.parent = parent; - calculateTopicPostCount(category); - const result = await plugins.hooks.fire('filter:category.get', { category: category, uid: data.uid }); + const result = await plugins.hooks.fire('filter:category.get', { + category: category, + ...data, + }); return result.category; };