summaryrefslogtreecommitdiff
path: root/packages/backend/src/remote
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-03-22 18:16:04 +0000
committerGitHub <noreply@github.com>2022-03-23 03:16:04 +0900
commit725b78349a9bb34e5f084a802ae7ea5369dc0bd3 (patch)
treea623930c0cd2ce2b329678bd668ba1478e063182 /packages/backend/src/remote
parentResolve #7208 (#7226) (diff)
downloadsharkey-725b78349a9bb34e5f084a802ae7ea5369dc0bd3.tar.gz
sharkey-725b78349a9bb34e5f084a802ae7ea5369dc0bd3.tar.bz2
sharkey-725b78349a9bb34e5f084a802ae7ea5369dc0bd3.zip
recognize null in _misskey_content for notes (#8440)
Diffstat (limited to 'packages/backend/src/remote')
-rw-r--r--packages/backend/src/remote/activitypub/models/note.ts2
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 dca64d0a60..0bcc89fbbb 100644
--- a/packages/backend/src/remote/activitypub/models/note.ts
+++ b/packages/backend/src/remote/activitypub/models/note.ts
@@ -197,7 +197,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
const cw = note.summary === '' ? null : note.summary;
// テキストのパース
- const text = note._misskey_content || (note.content ? htmlToMfm(note.content, note.tag) : null);
+ const text = typeof note._misskey_content !== 'undefined' ? note._misskey_content : (note.content ? htmlToMfm(note.content, note.tag) : null);
// vote
if (reply && reply.hasPoll) {