1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-12 13:48:33 +09:00

Fix user recommendation query (last activity) (#2892)

This commit is contained in:
MeiMei 2018-10-12 13:48:26 +09:00 committed by syuilo
parent 1a689f6641
commit 168c773ba0

View File

@ -69,13 +69,10 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
$nin: followingIds.concat(mutedUserIds)
},
isLocked: { $ne: true },
$or: [{
lastUsedAt: {
$gte: new Date(Date.now() - ms('7days'))
}
}, {
host: null
}]
lastUsedAt: {
$gte: new Date(Date.now() - ms('7days'))
},
host: null
}, {
limit: limit,
skip: offset,