mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
Fix user recommendation query (last activity) (#2892)
This commit is contained in:
parent
1a689f6641
commit
168c773ba0
@ -69,13 +69,10 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
|||||||
$nin: followingIds.concat(mutedUserIds)
|
$nin: followingIds.concat(mutedUserIds)
|
||||||
},
|
},
|
||||||
isLocked: { $ne: true },
|
isLocked: { $ne: true },
|
||||||
$or: [{
|
lastUsedAt: {
|
||||||
lastUsedAt: {
|
$gte: new Date(Date.now() - ms('7days'))
|
||||||
$gte: new Date(Date.now() - ms('7days'))
|
},
|
||||||
}
|
host: null
|
||||||
}, {
|
|
||||||
host: null
|
|
||||||
}]
|
|
||||||
}, {
|
}, {
|
||||||
limit: limit,
|
limit: limit,
|
||||||
skip: offset,
|
skip: offset,
|
||||||
|
Loading…
Reference in New Issue
Block a user