mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
[mastodon-client] Fix ordering of ancestors & descendants for status context
This commit is contained in:
parent
dd0875e517
commit
f6d0183668
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue