|
|
@ -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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|