more compact notifications
ci/woodpecker/push/lint-foundkey-js Pipeline was successful Details
ci/woodpecker/push/lint-client Pipeline failed Details
ci/woodpecker/push/lint-backend Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/lint-sw Pipeline failed Details
ci/woodpecker/push/test Pipeline failed Details

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