diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-14 14:22:58 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-14 14:22:58 +0900 |
| commit | bcc5449e47956e9786646abf688a3161aa89912a (patch) | |
| tree | 45896d7b3c7c6cdf68fc040669659b5b226d6804 /src/server/api/endpoints/users | |
| parent | Update example.yml (diff) | |
| download | sharkey-bcc5449e47956e9786646abf688a3161aa89912a.tar.gz sharkey-bcc5449e47956e9786646abf688a3161aa89912a.tar.bz2 sharkey-bcc5449e47956e9786646abf688a3161aa89912a.zip | |
リモートユーザーはおすすめユーザーに含めないように
Diffstat (limited to 'src/server/api/endpoints/users')
| -rw-r--r-- | src/server/api/endpoints/users/recommendation.ts | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 2de22da13e..e367e65a6c 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -30,15 +30,13 @@ module.exports = (params, me) => new Promise(async (res, rej) => { _id: { $nin: followingIds }, - $or: [ - { - 'lastUsedAt': { - $gte: new Date(Date.now() - ms('7days')) - } - }, { - host: { $ne: null } + $or: [{ + 'lastUsedAt': { + $gte: new Date(Date.now() - ms('7days')) } - ] + }, { + host: null + }] }, { limit: limit, skip: offset, |