mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	pass uid to getUsers and getUsersFromSets
This commit is contained in:
		@@ -175,7 +175,7 @@ User.deleteUsers = function(socket, uids, callback) {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
User.search = function(socket, data, callback) {
 | 
			
		||||
	user.search({query: data.query, searchBy: data.searchBy, startsWith: false}, function(err, searchData) {
 | 
			
		||||
	user.search({query: data.query, searchBy: data.searchBy, startsWith: false, uid: socket.uid}, function(err, searchData) {
 | 
			
		||||
		if (err) {
 | 
			
		||||
			return callback(err);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user