From 8e8e8c4c915615a2499ea58acaeaa2d772d9c7d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Dec 2018 03:22:27 +0900 Subject: [PATCH] Better cw detection --- src/misc/get-note-summary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index f02f74e27..e3458cb18 100644 --- a/src/misc/get-note-summary.ts +++ b/src/misc/get-note-summary.ts @@ -14,7 +14,7 @@ const summarize = (note: any): string => { let summary = ''; // 本文 - if (note.cw && note.cw != '') { + if (note.cw != null) { summary += note.cw; } else { summary += note.text ? note.text : '';