Skip to content

Commit

Permalink
Add unchangeable filtered notification setting for limited accounts (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Aug 7, 2024
1 parent 84c3cc4 commit f862936
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { useAppSelector, useAppDispatch } from 'mastodon/store';

import { CheckboxWithLabel } from './checkbox_with_label';

// eslint-disable-next-line @typescript-eslint/no-empty-function
const noop = () => {};

export const PolicyControls: React.FC = () => {
const dispatch = useAppDispatch();

Expand Down Expand Up @@ -135,6 +138,21 @@ export const PolicyControls: React.FC = () => {
/>
</span>
</CheckboxWithLabel>

<CheckboxWithLabel checked disabled onChange={noop}>
<strong>
<FormattedMessage
id='notifications.policy.filter_limited_accounts_title'
defaultMessage='Moderated accounts'
/>
</strong>
<span className='hint'>
<FormattedMessage
id='notifications.policy.filter_limited_accounts_hint'
defaultMessage='Limited by server moderators'
/>
</span>
</CheckboxWithLabel>
</div>
</section>
);
Expand Down
2 changes: 2 additions & 0 deletions app/javascript/mastodon/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@
"notifications.permission_denied": "Desktop notifications are unavailable due to previously denied browser permissions request",
"notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
"notifications.permission_required": "Desktop notifications are unavailable because the required permission has not been granted.",
"notifications.policy.filter_limited_accounts_hint": "Limited by server moderators",
"notifications.policy.filter_limited_accounts_title": "Moderated accounts",
"notifications.policy.filter_new_accounts.hint": "Created within the past {days, plural, one {one day} other {# days}}",
"notifications.policy.filter_new_accounts_title": "New accounts",
"notifications.policy.filter_not_followers_hint": "Including people who have been following you fewer than {days, plural, one {one day} other {# days}}",
Expand Down

0 comments on commit f862936

Please sign in to comment.