From 42a5d473e5532c410b283559dfb50e1bf7ecea50 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 7 Nov 2023 17:10:27 +0100 Subject: [PATCH] upd: remove remaining parts of tw --- packages/backend/src/server/api/endpoints/i/update.ts | 1 - packages/frontend/src/pages/settings/drive.vue | 6 ------ 2 files changed, 7 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index e161c47f9..373614f78 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -291,7 +291,6 @@ export default class extends Endpoint { // eslint- if ((await roleService.getUserPolicies(user.id)).alwaysMarkNsfw) throw new ApiError(meta.errors.restrictedByRole); profileUpdates.alwaysMarkNsfw = ps.alwaysMarkNsfw; } - if (typeof ps.autoSensitive === 'boolean') profileUpdates.autoSensitive = ps.autoSensitive; if (ps.emailNotificationTypes !== undefined) profileUpdates.emailNotificationTypes = ps.emailNotificationTypes; if (ps.avatarId) { diff --git a/packages/frontend/src/pages/settings/drive.vue b/packages/frontend/src/pages/settings/drive.vue index 4d390de25..bff7d5350 100644 --- a/packages/frontend/src/pages/settings/drive.vue +++ b/packages/frontend/src/pages/settings/drive.vue @@ -47,10 +47,6 @@ SPDX-License-Identifier: AGPL-3.0-only - - - - @@ -77,7 +73,6 @@ const usage = ref(null); const capacity = ref(null); const uploadFolder = ref(null); let alwaysMarkNsfw = $ref($i.alwaysMarkNsfw); -let autoSensitive = $ref($i.autoSensitive); const meterStyle = computed(() => { return { @@ -123,7 +118,6 @@ function chooseUploadFolder() { function saveProfile() { os.api('i/update', { alwaysMarkNsfw: !!alwaysMarkNsfw, - autoSensitive: !!autoSensitive, }).catch(err => { os.alert({ type: 'error',