mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
isFollowing: send false if user is anon
This commit is contained in:
@@ -118,7 +118,7 @@ SocketUser.reset.commit = function(socket, data, callback) {
|
||||
|
||||
SocketUser.isFollowing = function(socket, data, callback) {
|
||||
if (!socket.uid || !data.uid) {
|
||||
return;
|
||||
return callback(null, false);
|
||||
}
|
||||
|
||||
user.isFollowing(socket.uid, data.uid, callback);
|
||||
|
||||
Reference in New Issue
Block a user