mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
user.isFollowing socket call
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user