mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 15:53:10 +02:00
upd: remove leftover nsfw ai option
This commit is contained in:
parent
9cd2759769
commit
04657c14c7
3 changed files with 1 additions and 18 deletions
|
@ -284,7 +284,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (typeof ps.carefulBot === 'boolean') profileUpdates.carefulBot = ps.carefulBot;
|
if (typeof ps.carefulBot === 'boolean') profileUpdates.carefulBot = ps.carefulBot;
|
||||||
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;
|
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;
|
||||||
if (typeof ps.noCrawle === 'boolean') profileUpdates.noCrawle = ps.noCrawle;
|
if (typeof ps.noCrawle === 'boolean') profileUpdates.noCrawle = ps.noCrawle;
|
||||||
if (typeof ps.preventAiLearning === 'boolean') profileUpdates.preventAiLearning = ps.preventAiLearning;
|
|
||||||
if (typeof ps.isCat === 'boolean') updates.isCat = ps.isCat;
|
if (typeof ps.isCat === 'boolean') updates.isCat = ps.isCat;
|
||||||
if (typeof ps.speakAsCat === 'boolean') updates.speakAsCat = ps.speakAsCat;
|
if (typeof ps.speakAsCat === 'boolean') updates.speakAsCat = ps.speakAsCat;
|
||||||
if (typeof ps.injectFeaturedNote === 'boolean') profileUpdates.injectFeaturedNote = ps.injectFeaturedNote;
|
if (typeof ps.injectFeaturedNote === 'boolean') profileUpdates.injectFeaturedNote = ps.injectFeaturedNote;
|
||||||
|
|
|
@ -31,14 +31,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSwitch v-model="noCrawle">{{ i18n.ts.noCrawle }}<template #caption>{{ i18n.ts.noCrawleDescription }}</template></MkSwitch>
|
<MkSwitch v-model="noCrawle">{{ i18n.ts.noCrawle }}<template #caption>{{ i18n.ts.noCrawleDescription }}</template></MkSwitch>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder>
|
|
||||||
<template #label>{{ i18n.ts.preventAiLearning }}</template>
|
|
||||||
<template #icon><i class="ph-image-square ph-bold ph-lg-shield"></i></template>
|
|
||||||
<template #suffix>{{ preventAiLearning ? i18n.ts.on : i18n.ts.off }}</template>
|
|
||||||
|
|
||||||
<MkSwitch v-model="preventAiLearning">{{ i18n.ts.preventAiLearning }}<template #caption>{{ i18n.ts.preventAiLearningDescription }}</template></MkSwitch>
|
|
||||||
</MkFolder>
|
|
||||||
|
|
||||||
<MkInfo>{{ i18n.ts._initialAccountSetting.youCanEditMoreSettingsInSettingsPageLater }}</MkInfo>
|
<MkInfo>{{ i18n.ts._initialAccountSetting.youCanEditMoreSettingsInSettingsPageLater }}</MkInfo>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -56,14 +48,12 @@ import { $i } from '@/account.js';
|
||||||
let isLocked = ref(false);
|
let isLocked = ref(false);
|
||||||
let hideOnlineStatus = ref(false);
|
let hideOnlineStatus = ref(false);
|
||||||
let noCrawle = ref(false);
|
let noCrawle = ref(false);
|
||||||
let preventAiLearning = ref(true);
|
|
||||||
|
|
||||||
watch([isLocked, hideOnlineStatus, noCrawle, preventAiLearning], () => {
|
watch([isLocked, hideOnlineStatus, noCrawle], () => {
|
||||||
os.api('i/update', {
|
os.api('i/update', {
|
||||||
isLocked: !!isLocked.value,
|
isLocked: !!isLocked.value,
|
||||||
hideOnlineStatus: !!hideOnlineStatus.value,
|
hideOnlineStatus: !!hideOnlineStatus.value,
|
||||||
noCrawle: !!noCrawle.value,
|
noCrawle: !!noCrawle.value,
|
||||||
preventAiLearning: !!preventAiLearning.value,
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -29,10 +29,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
{{ i18n.ts.noCrawle }}
|
{{ i18n.ts.noCrawle }}
|
||||||
<template #caption>{{ i18n.ts.noCrawleDescription }}</template>
|
<template #caption>{{ i18n.ts.noCrawleDescription }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
<MkSwitch v-model="preventAiLearning" @update:modelValue="save()">
|
|
||||||
{{ i18n.ts.preventAiLearning }}<span class="_beta">{{ i18n.ts.beta }}</span>
|
|
||||||
<template #caption>{{ i18n.ts.preventAiLearningDescription }}</template>
|
|
||||||
</MkSwitch>
|
|
||||||
<MkSwitch v-model="isIndexable" @update:modelValue="save()">
|
<MkSwitch v-model="isIndexable" @update:modelValue="save()">
|
||||||
{{ i18n.ts.makeIndexable }}
|
{{ i18n.ts.makeIndexable }}
|
||||||
<template #caption>{{ i18n.ts.makeIndexableDescription }}</template>
|
<template #caption>{{ i18n.ts.makeIndexableDescription }}</template>
|
||||||
|
@ -84,7 +80,6 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
let isLocked = $ref($i.isLocked);
|
let isLocked = $ref($i.isLocked);
|
||||||
let autoAcceptFollowed = $ref($i.autoAcceptFollowed);
|
let autoAcceptFollowed = $ref($i.autoAcceptFollowed);
|
||||||
let noCrawle = $ref($i.noCrawle);
|
let noCrawle = $ref($i.noCrawle);
|
||||||
let preventAiLearning = $ref($i.preventAiLearning);
|
|
||||||
let isExplorable = $ref($i.isExplorable);
|
let isExplorable = $ref($i.isExplorable);
|
||||||
let isIndexable = $ref($i.isIndexable);
|
let isIndexable = $ref($i.isIndexable);
|
||||||
let hideOnlineStatus = $ref($i.hideOnlineStatus);
|
let hideOnlineStatus = $ref($i.hideOnlineStatus);
|
||||||
|
@ -101,7 +96,6 @@ function save() {
|
||||||
isLocked: !!isLocked,
|
isLocked: !!isLocked,
|
||||||
autoAcceptFollowed: !!autoAcceptFollowed,
|
autoAcceptFollowed: !!autoAcceptFollowed,
|
||||||
noCrawle: !!noCrawle,
|
noCrawle: !!noCrawle,
|
||||||
preventAiLearning: !!preventAiLearning,
|
|
||||||
isExplorable: !!isExplorable,
|
isExplorable: !!isExplorable,
|
||||||
isIndexable: !!isIndexable,
|
isIndexable: !!isIndexable,
|
||||||
hideOnlineStatus: !!hideOnlineStatus,
|
hideOnlineStatus: !!hideOnlineStatus,
|
||||||
|
|
Loading…
Reference in a new issue