From d451c3b4515906eafeac7cb29a590a8dd99d97af 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}つのメディア)`; }