summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-14 14:22:58 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-14 14:22:58 +0900
commitbcc5449e47956e9786646abf688a3161aa89912a (patch)
tree45896d7b3c7c6cdf68fc040669659b5b226d6804 /src/server/api
parentUpdate example.yml (diff)
downloadsharkey-bcc5449e47956e9786646abf688a3161aa89912a.tar.gz
sharkey-bcc5449e47956e9786646abf688a3161aa89912a.tar.bz2
sharkey-bcc5449e47956e9786646abf688a3161aa89912a.zip
リモートユーザーはおすすめユーザーに含めないように
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/endpoints/users/recommendation.ts14
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,