From 06207e56cd170147f2e12d86e4d6366cde5ba591 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 03:32:48 +0900 Subject: [PATCH] =?UTF-8?q?renote=E3=81=AE=E6=9D=A1=E4=BB=B6=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/sw/create-notification.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index 1ec684df8b..d6927f9bbd 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -103,10 +103,12 @@ async function composeNotification(data action: 'reply', title: t('_notification._actions.reply') }, + ...((data.body.note.visibility === 'public' || data.body.note.visibility === 'home') ? [ { action: 'renote', title: t('_notification._actions.renote') } + ] : []) ], }];