mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: pass all data to filter:category.get
This commit is contained in:
@@ -58,9 +58,11 @@ Categories.getCategoryById = async function (data) {
|
|||||||
category.isIgnored = watchState[0] === Categories.watchStates.ignoring;
|
category.isIgnored = watchState[0] === Categories.watchStates.ignoring;
|
||||||
category.parent = parent;
|
category.parent = parent;
|
||||||
|
|
||||||
|
|
||||||
calculateTopicPostCount(category);
|
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;
|
return result.category;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user