mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
follower and following count on account page
This commit is contained in:
@@ -315,8 +315,16 @@ var user = require('./../user.js'),
|
||||
data.uid = uid;
|
||||
data.yourid = callerUID;
|
||||
data.theirid = uid;
|
||||
|
||||
callback(data);
|
||||
|
||||
user.getFollowingCount(uid, function(followingCount) {
|
||||
user.getFollowerCount(uid, function(followerCount) {
|
||||
data.followingCount = followingCount;
|
||||
data.followerCount = followerCount;
|
||||
|
||||
callback(data);
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
callback({});
|
||||
|
||||
Reference in New Issue
Block a user