1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-11 21:29:08 +09:00

リモートユーザーはおすすめユーザーに含めないように

This commit is contained in:
syuilo 2018-04-14 14:22:58 +09:00
parent 366e1f7df5
commit bcc5449e47

View File

@ -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,