[mastodon-client] Return status.edited_at

This commit is contained in:
Laura Hausmann 2023-09-30 18:35:14 +02:00
parent b0487e1e63
commit 9454540385
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 0 deletions

View file

@ -128,6 +128,7 @@ export class NoteConverter {
reactions: [], //FIXME: this.mapReactions(n.emojis, n.reactions, n.myReaction),
bookmarked: isBookmarked,
quote: Promise.resolve(renote).then(renote => renote && note.text !== null ? this.encode(renote, user, cache) : null),
edited_at: note.updatedAt?.toISOString()
});
}

View file

@ -41,6 +41,7 @@ namespace MastodonEntity {
reactions: Array<Reaction>;
quote: Status | null;
bookmarked: boolean;
edited_at: string | null;
};
export type StatusCreationRequest = {