parent
8bb586c1fd
commit
2442592ef1
14 changed files with 108 additions and 10 deletions
|
|
@ -59,6 +59,11 @@ export default async function(type, data, i18n): Promise<[string, NotificationOp
|
|||
icon: data.user.avatarUrl
|
||||
}];
|
||||
|
||||
case 'pollEnded':
|
||||
return [i18n.t('_notification.pollEnded'), {
|
||||
body: data.note.text,
|
||||
}];
|
||||
|
||||
case 'follow':
|
||||
return [i18n.t('_notification.youWereFollowed'), {
|
||||
body: getUserName(data.user),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue