mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 01:03:09 +02:00
リモートユーザーはおすすめユーザーに含めないように
This commit is contained in:
parent
366e1f7df5
commit
bcc5449e47
1 changed files with 6 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue