diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-30 15:19:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 15:19:19 -0700 |
commit | a29f10aefe6fa67848ca281a0a7dffc43e292ec6 (patch) | |
tree | 7f1a534953eb515fd4a7f358885c4c1c5e2de42c /src/view/com | |
parent | 3a90b479fd42883a624b3c3e5d7ba36b510ca6fa (diff) | |
download | voidsky-a29f10aefe6fa67848ca281a0a7dffc43e292ec6.tar.zst |
Moderation settings fixes (#1336)
* Default isAdultContentEnabled to false on all devices. The original intent of setting the default based on the device was to make the maximally-permissive choice. It turns out this was a mistake as it created sync issues between devices; users would be confused by the lack of congruity between them. We have to go with false by default to ensure sync is retained. * Update preferences model to use new sdk api * Delete dead code * Dont show the iOS adult content warning in content filtering settings if adult content is enabled * Bump @atproto/api@0.6.8 * Codebase style consistency
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/modals/ContentFilteringSettings.tsx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/view/com/modals/ContentFilteringSettings.tsx b/src/view/com/modals/ContentFilteringSettings.tsx index 5215c9cb4..f39351feb 100644 --- a/src/view/com/modals/ContentFilteringSettings.tsx +++ b/src/view/com/modals/ContentFilteringSettings.tsx @@ -48,15 +48,17 @@ export const Component = observer(({}: {}) => { <ScrollView style={styles.scrollContainer}> <View style={s.mb10}> {isIOS ? ( - <Text type="md" style={pal.textLight}> - Adult content can only be enabled via the Web at{' '} - <TextLink - style={pal.link} - href="https://bsky.app" - text="bsky.app" - /> - . - </Text> + store.preferences.adultContentEnabled ? null : ( + <Text type="md" style={pal.textLight}> + Adult content can only be enabled via the Web at{' '} + <TextLink + style={pal.link} + href="https://bsky.app" + text="bsky.app" + /> + . + </Text> + ) ) : ( <ToggleButton type="default-light" @@ -188,7 +190,7 @@ function SelectGroup({current, onChange, group}: SelectGroupProps) { /> <SelectableBtn current={current} - value="show" + value="ignore" label="Show" right onChange={onChange} |