fix: 🐛 revert last part of c0eac56355
to properly paginate antennas/notes query
This commit is contained in:
parent
404476240e
commit
7ef99069e6
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue