* Add ScreenHider component * Add blur attribute to UserAvatar and UserBanner * Remove dead suggested posts component and model * Bump @atproto/api@0.2.10 * Rework moderation tooling to give a more precise DSL * Add label mocks * Apply finer grained moderation controls * Refactor ProfileCard to just take the profile object * Apply moderation to user listings and banner * Apply moderation to notifications * Fix lint * Tune avatar & banner blur settings per platform * 1.24
79 lines
1.9 KiB
TypeScript
79 lines
1.9 KiB
TypeScript
import {LabelPreferencesModel} from 'state/models/ui/preferences'
|
|
import {LabelValGroup} from './types'
|
|
|
|
export const ILLEGAL_LABEL_GROUP: LabelValGroup = {
|
|
id: 'illegal',
|
|
title: 'Illegal Content',
|
|
warning: 'Illegal Content',
|
|
values: ['csam', 'dmca-violation', 'nudity-nonconsentual'],
|
|
imagesOnly: false, // not applicable
|
|
}
|
|
|
|
export const UNKNOWN_LABEL_GROUP: LabelValGroup = {
|
|
id: 'unknown',
|
|
title: 'Unknown Label',
|
|
warning: 'Content Warning',
|
|
values: [],
|
|
imagesOnly: false,
|
|
}
|
|
|
|
export const CONFIGURABLE_LABEL_GROUPS: Record<
|
|
keyof LabelPreferencesModel,
|
|
LabelValGroup
|
|
> = {
|
|
nsfw: {
|
|
id: 'nsfw',
|
|
title: 'Explicit Sexual Images',
|
|
subtitle: 'i.e. Pornography',
|
|
warning: 'Sexually Explicit',
|
|
values: ['porn'],
|
|
imagesOnly: false, // apply to whole thing
|
|
},
|
|
nudity: {
|
|
id: 'nudity',
|
|
title: 'Other Nudity',
|
|
subtitle: 'Including non-sexual and artistic',
|
|
warning: 'Nudity',
|
|
values: ['nudity'],
|
|
imagesOnly: true,
|
|
},
|
|
suggestive: {
|
|
id: 'suggestive',
|
|
title: 'Sexually Suggestive',
|
|
subtitle: 'Does not include nudity',
|
|
warning: 'Sexually Suggestive',
|
|
values: ['sexual'],
|
|
imagesOnly: true,
|
|
},
|
|
gore: {
|
|
id: 'gore',
|
|
title: 'Violent / Bloody',
|
|
subtitle: 'Gore, self-harm, torture',
|
|
warning: 'Violence',
|
|
values: ['gore', 'self-harm', 'torture'],
|
|
imagesOnly: true,
|
|
},
|
|
hate: {
|
|
id: 'hate',
|
|
title: 'Political Hate-Groups',
|
|
warning: 'Hate',
|
|
values: ['icon-kkk', 'icon-nazi'],
|
|
imagesOnly: false,
|
|
},
|
|
spam: {
|
|
id: 'spam',
|
|
title: 'Spam',
|
|
subtitle: 'Excessive low-quality posts',
|
|
warning: 'Spam',
|
|
values: ['spam'],
|
|
imagesOnly: false,
|
|
},
|
|
impersonation: {
|
|
id: 'impersonation',
|
|
title: 'Impersonation',
|
|
subtitle: 'Accounts falsely claiming to be people or orgs',
|
|
warning: 'Impersonation',
|
|
values: ['impersonation'],
|
|
imagesOnly: false,
|
|
},
|
|
}
|