mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
chore(server): tweak notes/featured api
This commit is contained in:
parent
0c59dd3da7
commit
7ce0f79f7f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
|
||||
let notes = await query
|
||||
.orderBy('note.score', 'DESC')
|
||||
.take(ps.limit)
|
||||
.take(50)
|
||||
.getMany();
|
||||
|
||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||
|
|
Loading…
Reference in a new issue