mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Fix user recommendation query (last activity) (#2892)
This commit is contained in:
parent
10bb343403
commit
6c35586afc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user