From 5e257107cdbf52ba05113838ff6d4170b463e3b8 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 5 Nov 2015 16:07:25 -0500 Subject: [PATCH] fix status on following/followers etc. --- src/controllers/accounts/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js index d5a1eb013c..3b76d849cf 100644 --- a/src/controllers/accounts/helpers.js +++ b/src/controllers/accounts/helpers.js @@ -122,7 +122,7 @@ helpers.getBaseUser = function(userslug, callerUID, callback) { async.parallel({ user: function(next) { - user.getUserFields(uid, ['uid', 'username', 'userslug', 'picture', 'cover:url', 'cover:position'], next); + user.getUserFields(uid, ['uid', 'username', 'userslug', 'picture', 'cover:url', 'cover:position', 'status', 'lastonline'], next); }, isAdmin: function(next) { user.isAdministrator(callerUID, next); @@ -139,6 +139,7 @@ helpers.getBaseUser = function(userslug, callerUID, callback) { results.user.yourid = callerUID; 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.showHidden = results.user.isSelf || results.isAdmin; results.user.profile_links = results.profile_links;