more compact notifications
Some checks failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/test Pipeline failed
Some checks failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/test Pipeline failed
Don't show the entire renoted note in notifications and some other places. Changelog: Changed
This commit is contained in:
parent
5f09a44dbb
commit
ab22a1afa0
|
@ -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();
|
return summary.trim();
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,15 +29,6 @@ export const getNoteSummary = (note: foundkey.entities.Note): string => {
|
||||||
summary += ` (${i18n.ts.poll})`;
|
summary += ` (${i18n.ts.poll})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 返信のとき
|
|
||||||
if (note.replyId) {
|
|
||||||
if (note.reply) {
|
|
||||||
summary += `\n\nRE: ${getNoteSummary(note.reply)}`;
|
|
||||||
} else {
|
|
||||||
summary += '\n\nRE: ...';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Renoteのとき
|
// Renoteのとき
|
||||||
if (note.renoteId) {
|
if (note.renoteId) {
|
||||||
if (note.renote) {
|
if (note.renote) {
|
||||||
|
|
Loading…
Reference in a new issue