mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
closes #4816
This commit is contained in:
@@ -141,6 +141,9 @@ helpers.getBaseUser = function(userslug, callerUID, callback) {
|
|||||||
isGlobalModerator: function(next) {
|
isGlobalModerator: function(next) {
|
||||||
user.isGlobalModerator(callerUID, next);
|
user.isGlobalModerator(callerUID, next);
|
||||||
},
|
},
|
||||||
|
isFollowing: function(next) {
|
||||||
|
user.isFollowing(callerUID, uid, next);
|
||||||
|
},
|
||||||
profile_links: function(next) {
|
profile_links: function(next) {
|
||||||
plugins.fireHook('filter:user.profileLinks', [], 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.theirid = results.user.uid;
|
||||||
results.user.status = user.getStatus(results.user);
|
results.user.status = user.getStatus(results.user);
|
||||||
results.user.isSelf = parseInt(callerUID, 10) === parseInt(results.user.uid, 10);
|
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.showHidden = results.user.isSelf || results.isAdmin || results.isGlobalModerator;
|
||||||
results.user.profile_links = filterLinks(results.profile_links, results.user.isSelf);
|
results.user.profile_links = filterLinks(results.profile_links, results.user.isSelf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user