marked-mfm fixes: spin direction, greentext #34

Merged
floatingghost merged 9 commits from marked-mfm into develop 2022-07-15 09:59:22 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit f15465f0d3 - Show all commits

View file

@ -50,7 +50,7 @@
:html="status.raw_html" :html="status.raw_html"
:emoji="status.emojis" :emoji="status.emojis"
:handle-links="true" :handle-links="true"
:mfm="renderMisskeyMarkdown && (status.content_type === 'text/x.misskeymarkdown')" :mfm="renderMisskeyMarkdown && (status.media_type === 'text/x.misskeymarkdown')"
:greentext="mergedConfig.greentext" :greentext="mergedConfig.greentext"
:attentions="status.attentions" :attentions="status.attentions"
@parseReady="onParseReady" @parseReady="onParseReady"

View file

@ -282,11 +282,9 @@ export const parseStatus = (data) => {
if (data.akkoma) { if (data.akkoma) {
const { akkoma } = data const { akkoma } = data
if (akkoma && akkoma.source && akkoma.source.mediaType === 'text/x.misskeymarkdown') { if (akkoma && akkoma.source) {
output.mfm_content = akkoma.source.content output.media_type = akkoma.source.mediaType
} }
} else {
output.mfm_content = null
} }
output.in_reply_to_status_id = data.in_reply_to_id output.in_reply_to_status_id = data.in_reply_to_id