1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-02 00:38:31 +09:00
This commit is contained in:
syuilo 2018-12-17 20:17:21 +09:00
parent 48dc56e834
commit 65d943e42a
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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) {