upd: remove remaining parts of tw

This commit is contained in:
Mar0xy 2023-11-07 17:10:27 +01:00
parent f270f98756
commit 42a5d473e5
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
2 changed files with 0 additions and 7 deletions

View File

@ -291,7 +291,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if ((await roleService.getUserPolicies(user.id)).alwaysMarkNsfw) throw new ApiError(meta.errors.restrictedByRole); if ((await roleService.getUserPolicies(user.id)).alwaysMarkNsfw) throw new ApiError(meta.errors.restrictedByRole);
profileUpdates.alwaysMarkNsfw = ps.alwaysMarkNsfw; profileUpdates.alwaysMarkNsfw = ps.alwaysMarkNsfw;
} }
if (typeof ps.autoSensitive === 'boolean') profileUpdates.autoSensitive = ps.autoSensitive;
if (ps.emailNotificationTypes !== undefined) profileUpdates.emailNotificationTypes = ps.emailNotificationTypes; if (ps.emailNotificationTypes !== undefined) profileUpdates.emailNotificationTypes = ps.emailNotificationTypes;
if (ps.avatarId) { if (ps.avatarId) {

View File

@ -47,10 +47,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="alwaysMarkNsfw" @update:modelValue="saveProfile()"> <MkSwitch v-model="alwaysMarkNsfw" @update:modelValue="saveProfile()">
<template #label>{{ i18n.ts.alwaysMarkSensitive }}</template> <template #label>{{ i18n.ts.alwaysMarkSensitive }}</template>
</MkSwitch> </MkSwitch>
<MkSwitch v-model="autoSensitive" @update:modelValue="saveProfile()">
<template #label>{{ i18n.ts.enableAutoSensitive }}<span class="_beta">{{ i18n.ts.beta }}</span></template>
<template #caption>{{ i18n.ts.enableAutoSensitiveDescription }}</template>
</MkSwitch>
</div> </div>
</FormSection> </FormSection>
</div> </div>
@ -77,7 +73,6 @@ const usage = ref<any>(null);
const capacity = ref<any>(null); const capacity = ref<any>(null);
const uploadFolder = ref<any>(null); const uploadFolder = ref<any>(null);
let alwaysMarkNsfw = $ref($i.alwaysMarkNsfw); let alwaysMarkNsfw = $ref($i.alwaysMarkNsfw);
let autoSensitive = $ref($i.autoSensitive);
const meterStyle = computed(() => { const meterStyle = computed(() => {
return { return {
@ -123,7 +118,6 @@ function chooseUploadFolder() {
function saveProfile() { function saveProfile() {
os.api('i/update', { os.api('i/update', {
alwaysMarkNsfw: !!alwaysMarkNsfw, alwaysMarkNsfw: !!alwaysMarkNsfw,
autoSensitive: !!autoSensitive,
}).catch(err => { }).catch(err => {
os.alert({ os.alert({
type: 'error', type: 'error',