renoteの条件追加
This commit is contained in:
parent
e7de16db4a
commit
06207e56cd
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||||
}
|
}
|
||||||
|
] : [])
|
||||||
],
|
],
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue