Implement remote account resolution

This commit is contained in:
Akihiko Odaki 2018-03-27 16:51:12 +09:00
parent bee892d446
commit 68ce6d5748
73 changed files with 735 additions and 334 deletions

View file

@ -30,9 +30,15 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
_id: {
$nin: followingIds
},
'account.last_used_at': {
$gte: new Date(Date.now() - ms('7days'))
}
$or: [
{
'account.last_used_at': {
$gte: new Date(Date.now() - ms('7days'))
}
}, {
host: { $not: null }
}
]
}, {
limit: limit,
skip: offset,