From a29f10aefe6fa67848ca281a0a7dffc43e292ec6 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 30 Aug 2023 15:19:19 -0700 Subject: 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 --- src/lib/labeling/types.ts | 53 +---------------------------------------------- 1 file changed, 1 insertion(+), 52 deletions(-) (limited to 'src/lib/labeling/types.ts') diff --git a/src/lib/labeling/types.ts b/src/lib/labeling/types.ts index 1ee058024..84d59be7f 100644 --- a/src/lib/labeling/types.ts +++ b/src/lib/labeling/types.ts @@ -1,4 +1,4 @@ -import {ComAtprotoLabelDefs, AppBskyGraphDefs} from '@atproto/api' +import {ComAtprotoLabelDefs} from '@atproto/api' import {LabelPreferencesModel} from 'state/models/ui/preferences' export type Label = ComAtprotoLabelDefs.Label @@ -16,54 +16,3 @@ export interface LabelValGroup { warning: string values: string[] } - -export interface PostLabelInfo { - postLabels: Label[] - accountLabels: Label[] - profileLabels: Label[] - isMuted: boolean - mutedByList?: AppBskyGraphDefs.ListViewBasic - isBlocking: boolean - isBlockedBy: boolean -} - -export interface ProfileLabelInfo { - accountLabels: Label[] - profileLabels: Label[] - isMuted: boolean - isBlocking: boolean - isBlockedBy: boolean -} - -export enum ModerationBehaviorCode { - Show, - Hide, - Warn, - WarnContent, - WarnImages, -} - -export interface ModerationBehavior { - behavior: ModerationBehaviorCode - isMute?: boolean - noOverride?: boolean - reason?: string -} - -export interface AvatarModeration { - warn: boolean - blur: boolean -} - -export interface PostModeration { - avatar: AvatarModeration - list: ModerationBehavior - thread: ModerationBehavior - view: ModerationBehavior -} - -export interface ProfileModeration { - avatar: AvatarModeration - list: ModerationBehavior - view: ModerationBehavior -} -- cgit 1.4.1