1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 15:45:58 +09:00
This commit is contained in:
syuilo 2020-12-28 23:41:09 +09:00
parent 6c3f052996
commit d91fa1a37a

View File

@ -33,7 +33,7 @@ export const getNoteSummary = (note: any, locale: any): string => {
// 返信のとき // 返信のとき
if (note.replyId) { if (note.replyId) {
if (note.reply) { if (note.reply) {
summary += `\n\nRE: ${summarize(note.reply, locale)}`; summary += `\n\nRE: ${getNoteSummary(note.reply, locale)}`;
} else { } else {
summary += '\n\nRE: ...'; summary += '\n\nRE: ...';
} }
@ -42,7 +42,7 @@ export const getNoteSummary = (note: any, locale: any): string => {
// Renoteのとき // Renoteのとき
if (note.renoteId) { if (note.renoteId) {
if (note.renote) { if (note.renote) {
summary += `\n\nRN: ${summarize(note.renote, locale)}`; summary += `\n\nRN: ${getNoteSummary(note.renote, locale)}`;
} else { } else {
summary += '\n\nRN: ...'; summary += '\n\nRN: ...';
} }