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);
profileUpdates.alwaysMarkNsfw = ps.alwaysMarkNsfw;
}
if (typeof ps.autoSensitive === 'boolean') profileUpdates.autoSensitive = ps.autoSensitive;
if (ps.emailNotificationTypes !== undefined) profileUpdates.emailNotificationTypes = ps.emailNotificationTypes;
if (ps.avatarId) {

View file

@ -47,10 +47,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="alwaysMarkNsfw" @update:modelValue="saveProfile()">
<template #label>{{ i18n.ts.alwaysMarkSensitive }}</template>
</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>
</FormSection>
</div>
@ -77,7 +73,6 @@ const usage = ref<any>(null);
const capacity = ref<any>(null);
const uploadFolder = ref<any>(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',