mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 08:10:24 +01:00
wip
This commit is contained in:
parent
de472fdc79
commit
74dc874110
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ self.addEventListener('notificationclick', <K extends keyof pushNotificationData
|
|||
case 'notification':
|
||||
switch (action) {
|
||||
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;
|
||||
case 'showUser':
|
||||
if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id);
|
||||
|
|
Loading…
Reference in a new issue