From a16b96ccc02f86e2b9c8932de883db537b9ffc48 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 17:40:03 +0900 Subject: [PATCH] Fix bug --- src/renderers/get-note-summary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/get-note-summary.ts b/src/renderers/get-note-summary.ts index 13859439a..fc7482ca1 100644 --- a/src/renderers/get-note-summary.ts +++ b/src/renderers/get-note-summary.ts @@ -12,7 +12,7 @@ const summarize = (note: any): string => { summary += note.text ? note.text : ''; // メディアが添付されているとき - if (note.media) { + if (note.media.length != 0) { summary += ` (${note.media.length}つのメディア)`; }