mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
closes #4611
This commit is contained in:
@@ -88,6 +88,12 @@ function followCommand(method, socket, tid, callback) {
|
||||
method(tid, socket.uid, callback);
|
||||
}
|
||||
|
||||
SocketTopics.isFollowed = function(socket, tid, callback) {
|
||||
topics.isFollowing([tid], socket.uid, function(err, isFollowing) {
|
||||
callback(err, Array.isArray(isFollowing) && isFollowing.length ? isFollowing[0] : false);
|
||||
});
|
||||
};
|
||||
|
||||
SocketTopics.search = function(socket, data, callback) {
|
||||
topics.search(data.tid, data.term, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user