fix: 🐛 revert last part of c0eac56355
to properly paginate antennas/notes query
This commit is contained in:
parent
404476240e
commit
7ef99069e6
@ -106,8 +106,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||
generateMutedUserQuery(query, user);
|
||||
generateBlockedUserQuery(query, user);
|
||||
|
||||
const notes = await query.getMany();
|
||||
notes.sort((a, b) => (a.id > b.id ? -1 : 1));
|
||||
const notes = await query.take(ps.limit).getMany();
|
||||
|
||||
if (notes.length > 0) {
|
||||
readNote(user.id, notes);
|
||||
|
Loading…
Reference in New Issue
Block a user