From 25f92c60d454c740a1639e8586062067248bac4f Mon Sep 17 00:00:00 2001 From: tamaina <tamaina@hotmail.co.jp> Date: Tue, 21 Sep 2021 02:38:34 +0900 Subject: [PATCH] fix --- src/client/sw/sw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/sw/sw.ts b/src/client/sw/sw.ts index 8024bb86ce..9a84c15eab 100644 --- a/src/client/sw/sw.ts +++ b/src/client/sw/sw.ts @@ -109,7 +109,7 @@ self.addEventListener('notificationclick', <K extends keyof pushNotificationData case 'notification': switch (action) { case 'follow': - if ('userId' in data.body)await swos.api('following/create', id, { userId: data.body.userId }); + if ('userId' in data.body) await swos.api('following/create', id, { userId: data.body.userId }); break; case 'showUser': if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id);