diff options
| author | Johann150 <johann.galle@protonmail.com> | 2022-06-16 12:27:49 +0200 |
|---|---|---|
| committer | Johann150 <johann.galle@protonmail.com> | 2022-06-16 12:32:09 +0200 |
| commit | b54f9066055377aebdfd0d6d98144d2c2a78671f (patch) | |
| tree | 5ea00f4f81c971094dc4036b0b808ae4f4effcf9 | |
| parent | enhance(client): improve files page of control panel (diff) | |
| download | sharkey-b54f9066055377aebdfd0d6d98144d2c2a78671f.tar.gz sharkey-b54f9066055377aebdfd0d6d98144d2c2a78671f.tar.bz2 sharkey-b54f9066055377aebdfd0d6d98144d2c2a78671f.zip | |
fix: correctly render note text
Fix a regression from #8787 that was previously fixed in #8440.
| -rw-r--r-- | packages/backend/src/remote/activitypub/models/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/remote/activitypub/models/note.ts b/packages/backend/src/remote/activitypub/models/note.ts index 56c1a483ad..5d63f2605a 100644 --- a/packages/backend/src/remote/activitypub/models/note.ts +++ b/packages/backend/src/remote/activitypub/models/note.ts @@ -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); |