From 375f86ec8210a4f9752f875e46856f9cb6762fec Mon Sep 17 00:00:00 2001 From: mei23 Date: Wed, 10 Oct 2018 02:04:16 +0900 Subject: [PATCH] Fix users recommendation query --- src/server/api/endpoints/users/recommendation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 6538a303b8..d5807a295c 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -67,7 +67,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => _id: { $nin: followingIds.concat(mutedUserIds) }, - isLocked: false, + isLocked: { $ne: true }, $or: [{ lastUsedAt: { $gte: new Date(Date.now() - ms('7days'))