Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2024-04-11 16:46:01 -04:00
22 changed files with 180 additions and 66 deletions

View File

@@ -600,6 +600,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,