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
This commit is contained in:
parent
3a90b479fd
commit
a29f10aefe
6 changed files with 80 additions and 684 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue