From 65d943e42a690e0915e2114819c72e96c8472398 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 17 Dec 2018 20:17:21 +0900 Subject: [PATCH] Fix #3646 --- src/misc/get-note-summary.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index aa7687c52..f02f74e27 100644 --- a/src/misc/get-note-summary.ts +++ b/src/misc/get-note-summary.ts @@ -14,7 +14,11 @@ const summarize = (note: any): string => { let summary = ''; // 本文 - summary += note.text ? note.text : ''; + if (note.cw && note.cw != '') { + summary += note.cw; + } else { + summary += note.text ? note.text : ''; + } // ファイルが添付されているとき if ((note.files || []).length != 0) {