Trim notifications text (#3438)

* Trim notifications

* Remove needless colons

* Use single quote

* 🎨
This commit is contained in:
MeiMei
2018-11-30 09:34:37 +09:00
committed by syuilo
parent ee82f99f5a
commit 59a1b9adbe
4 changed files with 36 additions and 18 deletions

View File

@ -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: ...';
}
}