feat: アンケート終了通知

Resolve #4664
This commit is contained in:
syuilo
2022-03-06 16:06:27 +09:00
parent 8bb586c1fd
commit 2442592ef1
14 changed files with 108 additions and 10 deletions

View File

@@ -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),