From cfe2f0bb65707c8062dd8508715257fd239ec8a9 Mon Sep 17 00:00:00 2001 From: duogenesis <136373989+duogenesis@users.noreply.github.com> Date: Fri, 20 Dec 2024 00:40:38 +1100 Subject: [PATCH] Hide sensitive content --- data/option-groups.tsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/data/option-groups.tsx b/data/option-groups.tsx index 459af0d..7ac9b20 100644 --- a/data/option-groups.tsx +++ b/data/option-groups.tsx @@ -7,6 +7,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome' import { faPalette } from '@fortawesome/free-solid-svg-icons/faPalette' import { faRulerVertical } from '@fortawesome/free-solid-svg-icons/faRulerVertical' import { faRuler } from '@fortawesome/free-solid-svg-icons/faRuler' +import { faEyeSlash } from '@fortawesome/free-solid-svg-icons/faEyeSlash' import { faHandsPraying } from '@fortawesome/free-solid-svg-icons/faHandsPraying' import { faPills } from '@fortawesome/free-solid-svg-icons/faPills' import { faSmoking } from '@fortawesome/free-solid-svg-icons/faSmoking' @@ -936,6 +937,33 @@ const themePickerOptionGroups: OptionGroup[] = [ ]; const generalSettingsOptionGroups: OptionGroup[] = [ + { + title: 'Hide Lewd Content', + Icon: () => ( + + ), + description: "Do you want to hide content which was automatically flagged as being potentially lewd?", + input: { + buttons: { + values: yesNo, + submit: async function(hideLewdContent: string) { + const ok = (await japi( + 'patch', + '/profile-info', + { hide_lewd_content: hideLewdContent } + )).ok; + if (ok) { + this.currentValue = hideLewdContent; + } + return ok; + }, + } + } + }, { title: 'Units', Icon: () => (