mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -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))),
|
reactions: populated.then(populated => Promise.resolve(reaction).then(reaction => this.encodeReactions(note.reactions, reaction?.reaction, populated))),
|
||||||
bookmarked: isBookmarked,
|
bookmarked: isBookmarked,
|
||||||
quote: reblog.then(reblog => isQuote(note) ? reblog : null),
|
quote: reblog.then(reblog => isQuote(note) ? reblog : null),
|
||||||
|
quote_id: isQuote(note) ? note.renoteId : null,
|
||||||
edited_at: note.updatedAt?.toISOString() ?? null,
|
edited_at: note.updatedAt?.toISOString() ?? null,
|
||||||
filtered: filtered,
|
filtered: filtered,
|
||||||
});
|
});
|
||||||
|
|
|
@ -41,6 +41,7 @@ namespace MastodonEntity {
|
||||||
pinned: boolean | undefined;
|
pinned: boolean | undefined;
|
||||||
reactions: Array<Reaction>;
|
reactions: Array<Reaction>;
|
||||||
quote: Status | null;
|
quote: Status | null;
|
||||||
|
quote_id: string | null;
|
||||||
bookmarked: boolean;
|
bookmarked: boolean;
|
||||||
edited_at: string | null;
|
edited_at: string | null;
|
||||||
filtered: Array<FilterResult> | null;
|
filtered: Array<FilterResult> | null;
|
||||||
|
|
Loading…
Reference in a new issue