mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -59,7 +59,7 @@ Categories.getCategoryById = async function (data) {
|
||||
|
||||
|
||||
calculateTopicPostCount(category);
|
||||
const result = await plugins.fireHook('filter:category.get', { category: category, uid: data.uid });
|
||||
const result = await plugins.hooks.fire('filter:category.get', { category: category, uid: data.uid });
|
||||
return result.category;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user