Skip to content

Node.js based forum software built for the modern web

user.isFollowing socket call

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