This commit is contained in:
tamaina 2021-09-21 01:58:05 +09:00
parent de472fdc79
commit 74dc874110

View file

@ -119,7 +119,7 @@ self.addEventListener('notificationclick', <K extends keyof pushNotificationData
case 'notification': case 'notification':
switch (action) { switch (action) {
case 'follow': case 'follow':
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; break;
case 'showUser': case 'showUser':
if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id); if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id);