renoteの条件追加

This commit is contained in:
tamaina 2021-09-21 03:32:48 +09:00
parent e7de16db4a
commit 06207e56cd

View file

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