From ead377e0ca90f0d0bfd455a7ded0be871edd5a4e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 29 Oct 2015 22:22:33 -0400 Subject: [PATCH] user.isFollowing socket call --- src/socket.io/user.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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;