mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[backend] Add quote_id to mastodon api note responses
This commit is contained in:
parent
5a30581c73
commit
74a3375886
2 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,7 @@ export class NoteConverter {
|
|||
reactions: populated.then(populated => Promise.resolve(reaction).then(reaction => this.encodeReactions(note.reactions, reaction?.reaction, populated))),
|
||||
bookmarked: isBookmarked,
|
||||
quote: reblog.then(reblog => isQuote(note) ? reblog : null),
|
||||
quote_id: isQuote(note) ? note.renoteId : null,
|
||||
edited_at: note.updatedAt?.toISOString() ?? null,
|
||||
filtered: filtered,
|
||||
});
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace MastodonEntity {
|
|||
pinned: boolean | undefined;
|
||||
reactions: Array<Reaction>;
|
||||
quote: Status | null;
|
||||
quote_id: string | null;
|
||||
bookmarked: boolean;
|
||||
edited_at: string | null;
|
||||
filtered: Array<FilterResult> | null;
|
||||
|
|
Loading…
Reference in a new issue