From 003631df79ef055832cd16b0ec365b537fdda36a Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 30 Oct 2015 00:10:48 -0400 Subject: [PATCH] isFollowing: send false if user is anon --- src/socket.io/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/user.js b/src/socket.io/user.js index a251f0613e..fcaaa51d30 100644 --- a/src/socket.io/user.js +++ b/src/socket.io/user.js @@ -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);