isFollowing: send false if user is anon

This commit is contained in:
psychobunny
2015-10-30 00:10:48 -04:00
parent 4798647b8a
commit 003631df79

View File

@@ -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);