From 1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Apr 2019 18:58:29 +0900 Subject: Fix bug --- src/remote/activitypub/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remote/activitypub/models') diff --git a/src/remote/activitypub/models/note.ts b/src/remote/activitypub/models/note.ts index 9ed2fd641c..c11a77b0fe 100644 --- a/src/remote/activitypub/models/note.ts +++ b/src/remote/activitypub/models/note.ts @@ -152,7 +152,7 @@ export async function createNote(value: any, resolver?: Resolver, silent = false const cw = note.summary === '' ? null : note.summary; // テキストのパース - const text = note._misskey_content || fromHtml(note.content); + const text = note._misskey_content || (note.content ? fromHtml(note.content) : null); // vote if (reply && reply.hasPoll) { -- cgit v1.2.3-freya