more compact notifications

Don't show the entire renoted note in notifications and some other places.

Changelog: Changed
This commit is contained in:
Johann150 2024-03-19 19:09:34 +01:00
parent 5f09a44dbb
commit ab22a1afa0
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 0 additions and 18 deletions

View file

@ -37,14 +37,5 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
}
}
// Renoteのとき
if (note.renoteId) {
if (note.renote) {
summary += `\n\nRN: ${getNoteSummary(note.renote)}`;
} else {
summary += '\n\nRN: ...';
}
}
return summary.trim();
};

View file

@ -29,15 +29,6 @@ export const getNoteSummary = (note: foundkey.entities.Note): string => {
summary += ` (${i18n.ts.poll})`;
}
// 返信のとき
if (note.replyId) {
if (note.reply) {
summary += `\n\nRE: ${getNoteSummary(note.reply)}`;
} else {
summary += '\n\nRE: ...';
}
}
// Renoteのとき
if (note.renoteId) {
if (note.renote) {