mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
[mastodon-client] Return status.edited_at
This commit is contained in:
parent
b0487e1e63
commit
9454540385
2 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ export class NoteConverter {
|
||||||
reactions: [], //FIXME: this.mapReactions(n.emojis, n.reactions, n.myReaction),
|
reactions: [], //FIXME: this.mapReactions(n.emojis, n.reactions, n.myReaction),
|
||||||
bookmarked: isBookmarked,
|
bookmarked: isBookmarked,
|
||||||
quote: Promise.resolve(renote).then(renote => renote && note.text !== null ? this.encode(renote, user, cache) : null),
|
quote: Promise.resolve(renote).then(renote => renote && note.text !== null ? this.encode(renote, user, cache) : null),
|
||||||
|
edited_at: note.updatedAt?.toISOString()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ namespace MastodonEntity {
|
||||||
reactions: Array<Reaction>;
|
reactions: Array<Reaction>;
|
||||||
quote: Status | null;
|
quote: Status | null;
|
||||||
bookmarked: boolean;
|
bookmarked: boolean;
|
||||||
|
edited_at: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type StatusCreationRequest = {
|
export type StatusCreationRequest = {
|
||||||
|
|
Loading…
Reference in a new issue