renoteの条件追加
This commit is contained in:
parent
e7de16db4a
commit
06207e56cd
|
@ -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 New Issue