mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
search group members
This commit is contained in:
@@ -184,6 +184,15 @@ SocketGroups.search = function(socket, data, callback) {
|
||||
groups.search(data.query || '', data.options || {}, callback);
|
||||
};
|
||||
|
||||
SocketGroups.searchMembers = function(socket, data, callback) {
|
||||
if (!data) {
|
||||
return callback(null, []);
|
||||
}
|
||||
|
||||
data.uid = socket.uid;
|
||||
groups.searchMembers(data, callback);
|
||||
};
|
||||
|
||||
SocketGroups.kick = function(socket, data, callback) {
|
||||
if (!data) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
|
||||
Reference in New Issue
Block a user