renoteの条件追加

This commit is contained in:
tamaina 2021-09-21 03:32:48 +09:00
parent e7de16db4a
commit 06207e56cd
1 changed files with 2 additions and 0 deletions

View File

@ -103,10 +103,12 @@ async function composeNotification<K extends keyof pushNotificationDataMap>(data
action: 'reply',
title: t('_notification._actions.reply')
},
...((data.body.note.visibility === 'public' || data.body.note.visibility === 'home') ? [
{
action: 'renote',
title: t('_notification._actions.renote')
}
] : [])
],
}];