Node.js based forum software built for the modern web
closes #4816
barisusaklid94e2eed7207
diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.jsindex 2502d7fdd0..12a891a673 100644--- a/src/controllers/accounts/helpers.js+++ b/src/controllers/accounts/helpers.js@@ -141,6 +141,9 @@ helpers.getBaseUser = function(userslug, callerUID, callback) {isGlobalModerator: function(next) {user.isGlobalModerator(callerUID, next);},+ isFollowing: function(next) {+ user.isFollowing(callerUID, uid, next);+ },profile_links: function(next) {plugins.fireHook('filter:user.profileLinks', [], next);}@@ -155,6 +158,7 @@ helpers.getBaseUser = function(userslug, callerUID, callback) {results.user.theirid = results.user.uid;results.user.status = user.getStatus(results.user);results.user.isSelf = parseInt(callerUID, 10) === parseInt(results.user.uid, 10);+ results.user.isFollowing = results.isFollowing;results.user.showHidden = results.user.isSelf || results.isAdmin || results.isGlobalModerator;results.user.profile_links = filterLinks(results.profile_links, results.user.isSelf);