mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
added filter:categories.build
This commit is contained in:
@@ -154,7 +154,12 @@ categoriesController.list = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.render('categories', data);
|
||||
plugins.fireHook('filter:categories.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
res.render('categories', data.templateData);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user