From f3d485bd58c552a207abd142a2c623369918a469 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 6 Nov 2014 00:29:06 -0500 Subject: [PATCH] filter:user.account --- src/controllers/accounts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index c3be0c6aae..7eca9f8593 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -198,7 +198,12 @@ accountsController.getAccount = function(req, res, next) { userData.profileviews = 1; } - res.render('account/profile', userData); + plugins.fireHook('filter:user.account', {userData: userData, uid: callerUID}, function(err, data) { + if (err) { + return next(err); + } + res.render('account/profile', data.userData); + }); }); }); };