[mastodon-client] Fix ordering of ancestors & descendants for status context

This commit is contained in:
Laura Hausmann 2023-09-24 20:15:56 +02:00
parent dd0875e517
commit f6d0183668
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -27,7 +27,7 @@ export class NoteHelpers {
generateBlockedUserQuery(query, user); generateBlockedUserQuery(query, user);
} }
return query.getMany(); return query.getMany().then(p => p.reverse());
} }
public static async getNoteAncestors(rootNote: Note, user: ILocalUser | null, limit: number = 10): Promise<Note[]> { public static async getNoteAncestors(rootNote: Note, user: ILocalUser | null, limit: number = 10): Promise<Note[]> {
@ -43,7 +43,7 @@ export class NoteHelpers {
else break; else break;
} }
return notes; return notes.reverse();
} }
/** /**