Add an option restricting secondary toot privacy to that of the toot being replied to

This commit is contained in:
Thibaut Girka
2018-07-12 12:06:42 +02:00
committed by ThibG
parent d8b13b46f7
commit 57f31b361f
2 changed files with 15 additions and 2 deletions

View File

@ -16,6 +16,7 @@ const messages = defineMessages({
side_arm_none: { id: 'settings.side_arm.none', defaultMessage: 'None' },
side_arm_keep: { id: 'settings.side_arm_reply_mode.keep', defaultMessage: 'Keep secondary toot button to set privacy' },
side_arm_copy: { id: 'settings.side_arm_reply_mode.copy', defaultMessage: 'Copy privacy setting of the toot being replied to' },
side_arm_restrict: { id: 'settings.side_arm_reply_mode.restrict', defaultMessage: 'Restrict privacy setting to that of the toot being replied to' },
});
@injectIntl
@ -84,7 +85,8 @@ export default class LocalSettingsPage extends React.PureComponent {
id='mastodon-settings--side_arm_reply_mode'
options={[
{ value: 'keep', message: intl.formatMessage(messages.side_arm_keep) },
{ value: 'copy', message: intl.formatMessage(messages.side_arm_copy) }
{ value: 'copy', message: intl.formatMessage(messages.side_arm_copy) },
{ value: 'restrict', message: intl.formatMessage(messages.side_arm_restrict) },
]}
onChange={onChange}
>