[mastodon-client] Add content_type to /statuses/:id/source

This commit is contained in:
Laura Hausmann 2023-10-17 00:45:33 +02:00
parent bd366b0682
commit 092462d3a9
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 3 additions and 1 deletions

View file

@ -3,5 +3,6 @@ namespace MastodonEntity {
id: string; id: string;
text: string; text: string;
spoiler_text: string; spoiler_text: string;
content_type: string;
}; };
} }

View file

@ -220,7 +220,8 @@ export class NoteHelpers {
return { return {
id: note.id, id: note.id,
text: note.text ?? '', text: note.text ?? '',
spoiler_text: note.cw ?? '' spoiler_text: note.cw ?? '',
content_type: 'text/x.misskeymarkdown'
} }
} }