Skip to content
Snippets Groups Projects
Unverified Commit b54f9066 authored by Johann150's avatar Johann150
Browse files

fix: correctly render note text

Fix a regression from #8787 that was previously fixed in #8440.
parent 4a55425f
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
let text: string | null = null;
if (note.source?.mediaType === 'text/x.misskeymarkdown' && typeof note.source?.content === 'string') {
text = note.source.content;
} else if (typeof note._misskey_content === 'string') {
} else if (typeof note._misskey_content !== 'undefined') {
text = note._misskey_content;
} else if (typeof note.content === 'string') {
text = htmlToMfm(note.content, note.tag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment