From ee29ab95beccbfec167f42f0dcff3a76dd612035 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 15 Mar 2019 22:22:59 +0900 Subject: [PATCH] Fix users/search (#4505) --- src/server/api/endpoints/users/search.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/api/endpoints/users/search.ts b/src/server/api/endpoints/users/search.ts index 27b449d62..a95f6df6d 100644 --- a/src/server/api/endpoints/users/search.ts +++ b/src/server/api/endpoints/users/search.ts @@ -71,7 +71,7 @@ export default define(meta, async (ps, me) => { .find({ host: null, usernameLower: new RegExp('^' + escapeRegexp(ps.query.replace('@', '').toLowerCase())), - isSuspended: false + isSuspended: { $ne: true } }, { limit: ps.limit, skip: ps.offset @@ -82,7 +82,7 @@ export default define(meta, async (ps, me) => { .find({ host: { $ne: null }, usernameLower: new RegExp('^' + escapeRegexp(ps.query.replace('@', '').toLowerCase())), - isSuspended: false + isSuspended: { $ne: true } }, { limit: ps.limit - users.length });