mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 11:37:37 +01:00
breaking: removal of filter:router.page
This commit is contained in:
@@ -91,11 +91,6 @@ middleware.pageView = helpers.try(async (req, res, next) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
middleware.pluginHooks = helpers.try(async (req, res, next) => {
|
middleware.pluginHooks = helpers.try(async (req, res, next) => {
|
||||||
// TODO: Deprecate in v2.0
|
|
||||||
await async.each(plugins.loadedHooks['filter:router.page'] || [], (hookObj, next) => {
|
|
||||||
hookObj.method(req, res, next);
|
|
||||||
});
|
|
||||||
|
|
||||||
await plugins.hooks.fire('response:router.page', {
|
await plugins.hooks.fire('response:router.page', {
|
||||||
req: req,
|
req: req,
|
||||||
res: res,
|
res: res,
|
||||||
|
|||||||
Reference in New Issue
Block a user