mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 06:00:44 +01:00
[API] Improve trend algorithm
This commit is contained in:
parent
3d7fc7ca46
commit
e6e63f0679
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||
const query = {
|
||||
created_at: {
|
||||
$gte: new Date(Date.now() - ms('1days'))
|
||||
},
|
||||
repost_count: {
|
||||
$gt: 0
|
||||
}
|
||||
} as any;
|
||||
|
||||
|
|
Loading…
Reference in a new issue