diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 042343a0f3..84b12b328f 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -163,7 +163,8 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif const tag = `reaction:${data.body.note.id}`; return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), { - body: reaction + '\n' + data.body.note.text ?? '', + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + body: `:${ reaction }:` + '\n' + data.body.note.text ?? '', icon: data.body.user.avatarUrl, tag, badge,