From 5b8f6a049010860347d03fafb2cc7d09e961f0b7 Mon Sep 17 00:00:00 2001 From: kozakura913 <98575220+kozakura913@users.noreply.github.com> Date: Fri, 16 Aug 2024 22:28:00 +0900 Subject: [PATCH] =?UTF-8?q?sw/create-notification=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E6=8A=91=E5=88=B6=20(#342)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/sw/src/scripts/create-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 76d9a05fbc..329e7054ca 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -164,7 +164,7 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif const tag = `reaction:${data.body.note.id}`; return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), { - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, no-constant-binary-expression body: (reaction1.startsWith(':') ? `:${ reaction }:` : `${ reaction }`) + '\n' + data.body.note.text ?? '', icon: data.body.user.avatarUrl, tag,