Skip to content

Node.js based forum software built for the modern web

filter:user.account

barisusaklif3d485bd58c5
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);
+ });
});
});
};