Trim notifications text (#3438)
* Trim notifications
* Remove needless colons
* Use single quote
* 🎨
This commit is contained in:
parent
ee82f99f5a
commit
59a1b9adbe
4 changed files with 36 additions and 18 deletions
|
@ -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: ...';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue