[mastodon-client] Return content_type for statuses
This commit is contained in:
parent
c64f6b6db6
commit
97176e00f9
2 changed files with 2 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ export class NoteConverter {
|
||||||
in_reply_to_account_id: note.replyUserId,
|
in_reply_to_account_id: note.replyUserId,
|
||||||
reblog: reblog.then(reblog => note.text === null ? reblog : null),
|
reblog: reblog.then(reblog => note.text === null ? reblog : null),
|
||||||
content: text.then(async text => text !== null ? MfmHelpers.toHtml(mfm.parse(text), JSON.parse(note.mentionedRemoteUsers), note.userHost).then(p => p ?? escapeMFM(text)) : ""),
|
content: text.then(async text => text !== null ? MfmHelpers.toHtml(mfm.parse(text), JSON.parse(note.mentionedRemoteUsers), note.userHost).then(p => p ?? escapeMFM(text)) : ""),
|
||||||
|
content_type: 'text/x.misskeymarkdown',
|
||||||
text: text,
|
text: text,
|
||||||
created_at: note.createdAt.toISOString(),
|
created_at: note.createdAt.toISOString(),
|
||||||
emojis: noteEmoji,
|
emojis: noteEmoji,
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ namespace MastodonEntity {
|
||||||
in_reply_to_account_id: string | null;
|
in_reply_to_account_id: string | null;
|
||||||
reblog: Status | null;
|
reblog: Status | null;
|
||||||
content: string | undefined;
|
content: string | undefined;
|
||||||
|
content_type: string;
|
||||||
text: string | null | undefined;
|
text: string | null | undefined;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
emojis: Emoji[];
|
emojis: Emoji[];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue