|
|
|
@ -21,6 +21,10 @@ const messages = defineMessages({ |
|
|
|
|
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' }, |
|
|
|
|
regexp: { id: 'settings.content_warnings.regexp', defaultMessage: 'Regular expression' }, |
|
|
|
|
filters_drop: { id: 'settings.filtering_behavior.drop', defaultMessage: 'Hide filtered toots completely' }, |
|
|
|
|
filters_upstream: { id: 'settings.filtering_behavior.upstream', defaultMessage: 'Show "filtered" like vanilla Mastodon' }, |
|
|
|
|
filters_hide: { id: 'settings.filtering_behavior.hide', defaultMessage: 'Show "filtered" and add a button to display why' }, |
|
|
|
|
filters_cw: { id: 'settings.filtering_behavior.cw', defaultMessage: 'Still display the post, and add filtered words to content warning' }, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
@injectIntl |
|
|
|
@ -223,6 +227,25 @@ export default class LocalSettingsPage extends React.PureComponent { |
|
|
|
|
</LocalSettingsPageItem> |
|
|
|
|
</div> |
|
|
|
|
), |
|
|
|
|
({ intl, onChange, settings }) => ( |
|
|
|
|
<div className='glitch local-settings__page filters'> |
|
|
|
|
<h1><FormattedMessage id='settings.filters' defaultMessage='Filters' /></h1> |
|
|
|
|
<LocalSettingsPageItem |
|
|
|
|
settings={settings} |
|
|
|
|
item={['filtering_behavior']} |
|
|
|
|
id='mastodon-settings--filters-behavior' |
|
|
|
|
onChange={onChange} |
|
|
|
|
options={[ |
|
|
|
|
{ value: 'drop', message: intl.formatMessage(messages.filters_drop) }, |
|
|
|
|
{ value: 'upstream', message: intl.formatMessage(messages.filters_upstream) }, |
|
|
|
|
{ value: 'hide', message: intl.formatMessage(messages.filters_hide) }, |
|
|
|
|
{ value: 'content_warning', message: intl.formatMessage(messages.filters_cw) } |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
<FormattedMessage id='settings.filtering_behavior' defaultMessage='Filtering behavior' /> |
|
|
|
|
</LocalSettingsPageItem> |
|
|
|
|
</div> |
|
|
|
|
), |
|
|
|
|
({ onChange, settings }) => ( |
|
|
|
|
<div className='glitch local-settings__page collapsed'> |
|
|
|
|
<h1><FormattedMessage id='settings.collapsed_statuses' defaultMessage='Collapsed toots' /></h1> |
|
|
|
|