From a76b5d15e0b11bb44bf78735174da830df7ea16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 31 Mar 2021 11:15:50 -0400 Subject: [PATCH] feat: pass all data to filter:category.get --- src/categories/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; };