diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-17 20:17:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-17 20:17:21 +0900 |
| commit | 65d943e42a690e0915e2114819c72e96c8472398 (patch) | |
| tree | 480207715340b8863a9b5790e4704f93e00d2a5b /src | |
| parent | 10.64.2 (diff) | |
| download | misskey-65d943e42a690e0915e2114819c72e96c8472398.tar.gz misskey-65d943e42a690e0915e2114819c72e96c8472398.tar.bz2 misskey-65d943e42a690e0915e2114819c72e96c8472398.zip | |
Fix #3646
Diffstat (limited to 'src')
| -rw-r--r-- | src/misc/get-note-summary.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index aa7687c522..f02f74e275 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) { |