From bc0359475c8f897c2133ffe1658599a194da6195 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 9 May 2016 13:04:52 -0400 Subject: [PATCH] fixed link to documentation, @akhoury --- src/plugins/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/hooks.js b/src/plugins/hooks.js index 35eed900c3..1b186857f4 100644 --- a/src/plugins/hooks.js +++ b/src/plugins/hooks.js @@ -63,7 +63,7 @@ module.exports = function(Plugins) { if (Plugins.deprecatedHooksParams[_hook]) { winston.warn('[plugins/' + id + '] Hook `' + _hook + '` parameters: `' + Plugins.deprecatedHooksParams[_hook] + '`, are being deprecated, ' + 'all plugins should now use the `middleware/cls` module instead of hook\'s arguments to get a reference to the `req`, `res` and/or `socket` object(s) (from which you can get the current `uid` if you need to.) ' - + '- for more info, visit https://docs.nodebb.org/en/latest/plugins/create.html#getting-a-reference-to-each-request-from-within-any-plugin-hook'); + + '- for more info, visit https://docs.nodebb.org/en/latest/plugins/create.html#getting-a-reference-to-req-res-socket-and-uid-within-any-plugin-hook'); delete Plugins.deprecatedHooksParams[_hook]; } }