mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-23 14:46:07 +09:00
[backend] Add quote_id to mastodon api note responses
This commit is contained in:
parent
5a30581c73
commit
74a3375886
@ -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 New Issue
Block a user