Skip to content

Node.js based forum software built for the modern web

feat: pass all data to filter:category.get

Barış Soner Uşaklıd16b45fd2d9e
diff --git a/src/categories/index.js b/src/categories/index.js
index 718fa9b95e..c7a1748507 100644
--- a/src/categories/index.js
+++ b/src/categories/index.js
@@ -58,9 +58,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;
};