diff --git a/src/socket.io/user.js b/src/socket.io/user.js index 08b5f11d0a..a251f0613e 100644 --- a/src/socket.io/user.js +++ b/src/socket.io/user.js @@ -116,6 +116,14 @@ SocketUser.reset.commit = function(socket, data, callback) { }); }; +SocketUser.isFollowing = function(socket, data, callback) { + if (!socket.uid || !data.uid) { + return; + } + + user.isFollowing(socket.uid, data.uid, callback); +}; + SocketUser.follow = function(socket, data, callback) { if (!socket.uid || !data) { return;