parse plain Markdown as MFM before falling back to HTML from remote notes

This commit is contained in:
Hazelnoot 2025-06-14 19:58:32 -04:00
parent c3a6ba93ca
commit ec6e4da8b3

View file

@ -210,7 +210,9 @@ export class ApNoteService {
const cw = note.summary === '' ? null : note.summary;
// テキストのパース
let text = getContentByType(note, 'text/x.misskeymarkdown');
let text =
getContentByType(note, 'text/x.misskeymarkdown') ??
getContentByType(note, 'text/markdown');
if (text == null && typeof note.content === 'string') {
text = this.apMfmService.htmlToMfm(note.content, note.tag);
}
@ -407,7 +409,9 @@ export class ApNoteService {
const cw = note.summary === '' ? null : note.summary;
// テキストのパース
let text = getContentByType(note, 'text/x.misskeymarkdown');
let text =
getContentByType(note, 'text/x.misskeymarkdown') ??
getContentByType(note, 'text/markdown');
if (text == null && typeof note.content === 'string') {
text = this.apMfmService.htmlToMfm(note.content, note.tag);
}