mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	feat: #12495, add unblock button to users on /blocks
This commit is contained in:
		@@ -601,6 +601,7 @@ usersAPI.search = async function (caller, data) {
 | 
			
		||||
		throw new Error('[[error:no-privileges]]');
 | 
			
		||||
	}
 | 
			
		||||
	return await user.search({
 | 
			
		||||
		uid: caller.uid,
 | 
			
		||||
		query: data.query,
 | 
			
		||||
		searchBy: data.searchBy || 'username',
 | 
			
		||||
		page: data.page || 1,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user