diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 5b74d442c..38b420c33 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -42,9 +42,9 @@ export const meta = { export default define(meta, async (ps, me) => { const query = Users.createQueryBuilder('user') .where('user.isLocked = FALSE') - .where('user.host IS NULL') - .where('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) }) - .where('user.id != :meId', { meId: me.id }) + .andWhere('user.host IS NULL') + .andWhere('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) }) + .andWhere('user.id != :meId', { meId: me.id }) .orderBy('user.followersCount', 'DESC'); generateMuteQueryForUsers(query, me);