Use media type to figure out whether to parse MFM
This commit is contained in:
parent
5e18f1ceeb
commit
f15465f0d3
2 changed files with 3 additions and 5 deletions
|
@ -50,7 +50,7 @@
|
|||
:html="status.raw_html"
|
||||
:emoji="status.emojis"
|
||||
:handle-links="true"
|
||||
:mfm="renderMisskeyMarkdown && (status.content_type === 'text/x.misskeymarkdown')"
|
||||
:mfm="renderMisskeyMarkdown && (status.media_type === 'text/x.misskeymarkdown')"
|
||||
:greentext="mergedConfig.greentext"
|
||||
:attentions="status.attentions"
|
||||
@parseReady="onParseReady"
|
||||
|
|
|
@ -282,11 +282,9 @@ export const parseStatus = (data) => {
|
|||
|
||||
if (data.akkoma) {
|
||||
const { akkoma } = data
|
||||
if (akkoma && akkoma.source && akkoma.source.mediaType === 'text/x.misskeymarkdown') {
|
||||
output.mfm_content = akkoma.source.content
|
||||
if (akkoma && akkoma.source) {
|
||||
output.media_type = akkoma.source.mediaType
|
||||
}
|
||||
} else {
|
||||
output.mfm_content = null
|
||||
}
|
||||
|
||||
output.in_reply_to_status_id = data.in_reply_to_id
|
||||
|
|
Loading…
Reference in a new issue