user.isFollowing socket call

This commit is contained in:
psychobunny
2015-10-29 22:22:33 -04:00
parent a40a5ed15d
commit ead377e0ca

View File

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