Skip to content

Node.js based forum software built for the modern web

isFollowing: send false if user is anon

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