fix: 🐛 revert last part of c0eac56355 to properly paginate antennas/notes query

This commit is contained in:
ThatOneCalculator 2023-07-24 16:27:53 -07:00
parent 404476240e
commit 7ef99069e6
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -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);