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