From d94e2eed72073a01953138460e789e8756539c51 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 6 Jul 2016 13:16:39 +0300 Subject: [PATCH] closes #4816 --- src/controllers/accounts/helpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js index 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);