[mastodon-client] Return edit history in correct order

This commit is contained in:
Laura Hausmann 2023-10-12 20:50:40 +02:00
parent 5e61be286c
commit 0616edffa8
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -210,7 +210,7 @@ export class NoteHelpers {
media_attachments: files.then(files => files.length > 0 ? files.map((f) => FileConverter.encode(f)) : []) media_attachments: files.then(files => files.length > 0 ? files.map((f) => FileConverter.encode(f)) : [])
}; };
lastDate = edit.updatedAt; lastDate = edit.updatedAt;
history.unshift(awaitAll(item)); history.push(awaitAll(item));
} }
return Promise.all(history); return Promise.all(history);