From 0616edffa8754e84912ff381d01e78dfc9d72c80 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 12 Oct 2023 20:50:40 +0200 Subject: [PATCH] [mastodon-client] Return edit history in correct order --- packages/backend/src/server/api/mastodon/helpers/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/helpers/note.ts b/packages/backend/src/server/api/mastodon/helpers/note.ts index c8c14b5b0..776515876 100644 --- a/packages/backend/src/server/api/mastodon/helpers/note.ts +++ b/packages/backend/src/server/api/mastodon/helpers/note.ts @@ -210,7 +210,7 @@ export class NoteHelpers { media_attachments: files.then(files => files.length > 0 ? files.map((f) => FileConverter.encode(f)) : []) }; lastDate = edit.updatedAt; - history.unshift(awaitAll(item)); + history.push(awaitAll(item)); } return Promise.all(history);