summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/models/note.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:58:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:58:29 +0900
commit1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b (patch)
tree0cda73ba54875b4497bd741b0a66447b3481fa6d /src/remote/activitypub/models/note.ts
parentリプライ先をエラー時に無視すると本来は投票なのに投... (diff)
downloadsharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.tar.gz
sharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.tar.bz2
sharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.zip
Fix bug
Diffstat (limited to 'src/remote/activitypub/models/note.ts')
-rw-r--r--src/remote/activitypub/models/note.ts2
1 files changed, 1 insertions, 1 deletions
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) {