diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-20 03:22:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-20 03:22:27 +0900 |
| commit | 710ba526fa00a7ca3b05a57fb9745247f2520eb6 (patch) | |
| tree | 63c3b6b4dbe12cafe5ba9ad5ebd0c0744e857381 /src/misc/get-note-summary.ts | |
| parent | [Doc] Clean up (diff) | |
| download | sharkey-710ba526fa00a7ca3b05a57fb9745247f2520eb6.tar.gz sharkey-710ba526fa00a7ca3b05a57fb9745247f2520eb6.tar.bz2 sharkey-710ba526fa00a7ca3b05a57fb9745247f2520eb6.zip | |
Better cw detection
Diffstat (limited to 'src/misc/get-note-summary.ts')
| -rw-r--r-- | src/misc/get-note-summary.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index f02f74e275..e3458cb189 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 : ''; |