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); generateMutedUserQuery(query, user);
generateBlockedUserQuery(query, user); generateBlockedUserQuery(query, user);
const notes = await query.getMany(); const notes = await query.take(ps.limit).getMany();
notes.sort((a, b) => (a.id > b.id ? -1 : 1));
if (notes.length > 0) { if (notes.length > 0) {
readNote(user.id, notes); readNote(user.id, notes);