diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-11-30 09:34:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-30 09:34:37 +0900 |
| commit | 59a1b9adbe5af3655a30987e73ea60597bb9d5ca (patch) | |
| tree | b19fefc6078421ebf3b721cd21cebfac211137fc /src/misc | |
| parent | Better limit (diff) | |
| download | sharkey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.tar.gz sharkey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.tar.bz2 sharkey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.zip | |
Trim notifications text (#3438)
* Trim notifications
* Remove needless colons
* Use single quote
* :art:
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/get-note-summary.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index 3f96483032..aa7687c522 100644 --- a/src/misc/get-note-summary.ts +++ b/src/misc/get-note-summary.ts @@ -29,18 +29,18 @@ const summarize = (note: any): string => { // 返信のとき if (note.replyId) { if (note.reply) { - summary += ` RE: ${summarize(note.reply)}`; + summary += `\n\nRE: ${summarize(note.reply)}`; } else { - summary += ' RE: ...'; + summary += '\n\nRE: ...'; } } // Renoteのとき if (note.renoteId) { if (note.renote) { - summary += ` RN: ${summarize(note.renote)}`; + summary += `\n\nRN: ${summarize(note.renote)}`; } else { - summary += ' RN: ...'; + summary += '\n\nRN: ...'; } } |