mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-24 06:29:04 +01:00
fix: correctly render note text
Fix a regression from #8787 that was previously fixed in #8440.
This commit is contained in:
parent
4a55425fdb
commit
b54f906605
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
|
||||||
let text: string | null = null;
|
let text: string | null = null;
|
||||||
if (note.source?.mediaType === 'text/x.misskeymarkdown' && typeof note.source?.content === 'string') {
|
if (note.source?.mediaType === 'text/x.misskeymarkdown' && typeof note.source?.content === 'string') {
|
||||||
text = note.source.content;
|
text = note.source.content;
|
||||||
} else if (typeof note._misskey_content === 'string') {
|
} else if (typeof note._misskey_content !== 'undefined') {
|
||||||
text = note._misskey_content;
|
text = note._misskey_content;
|
||||||
} else if (typeof note.content === 'string') {
|
} else if (typeof note.content === 'string') {
|
||||||
text = htmlToMfm(note.content, note.tag);
|
text = htmlToMfm(note.content, note.tag);
|
||||||
|
|
Loading…
Reference in a new issue