diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:58:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:58:29 +0900 |
| commit | 1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b (patch) | |
| tree | 0cda73ba54875b4497bd741b0a66447b3481fa6d /src/remote/activitypub/models/note.ts | |
| parent | リプライ先をエラー時に無視すると本来は投票なのに投... (diff) | |
| download | sharkey-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.ts | 2 |
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) { |