feat: #12495, add unblock button to users on /blocks

This commit is contained in:
Barış Soner Uşaklı
2024-04-11 16:18:42 -04:00
parent 52e7152206
commit afe597a275
5 changed files with 59 additions and 18 deletions

View File

@@ -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,