This commit is contained in:
tamaina 2021-11-22 17:25:31 +09:00
parent be247dc1d1
commit abd45ffebd
1 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'mention':
return [t('_notification.youGotMention', { name: getUserName(data.body.user) }), {
body: getNoteSummary(data.body.note, i18n.locale),
body: getNoteSummary(data.body.note, i18n),
icon: data.body.user.avatarUrl,
data,
actions: [
@ -69,7 +69,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'reply':
return [t('_notification.youGotReply', { name: getUserName(data.body.user) }), {
body: getNoteSummary(data.body.note, i18n.locale),
body: getNoteSummary(data.body.note, i18n),
icon: data.body.user.avatarUrl,
data,
actions: [
@ -82,7 +82,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'renote':
return [t('_notification.youRenoted', { name: getUserName(data.body.user) }), {
body: getNoteSummary(data.body.note.renote, i18n.locale),
body: getNoteSummary(data.body.note.renote, i18n),
icon: data.body.user.avatarUrl,
data,
actions: [
@ -95,7 +95,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'quote':
return [t('_notification.youGotQuote', { name: getUserName(data.body.user) }), {
body: getNoteSummary(data.body.note, i18n.locale),
body: getNoteSummary(data.body.note, i18n),
icon: data.body.user.avatarUrl,
data,
actions: [
@ -114,7 +114,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'reaction':
return [`${data.body.reaction} ${getUserName(data.body.user)}`, {
body: getNoteSummary(data.body.note, i18n.locale),
body: getNoteSummary(data.body.note, i18n),
icon: data.body.user.avatarUrl,
data,
actions: [
@ -127,7 +127,7 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
case 'pollVote':
return [t('_notification.youGotPoll', { name: getUserName(data.body.user) }), {
body: getNoteSummary(data.body.note, i18n.locale),
body: getNoteSummary(data.body.note, i18n),
icon: data.body.user.avatarUrl,
data,
}];