diff --git a/src/api/endpoints/users/search.js b/src/api/endpoints/users/search.js index 9ece596075..8205de580f 100644 --- a/src/api/endpoints/users/search.js +++ b/src/api/endpoints/users/search.js @@ -64,6 +64,8 @@ async function byNative(res, rej, me, query, offset, max) { }, { name: new RegExp(escapedQuery) }] + }, { + limit: max }); // Serialize