feat: AIによるNSFW検出を無視できるポリシーを追加 (MisskeyIO#500)

* feat: AIによるNSFW検出を無視できるポリシーを追加

* refactor: skipNsfwCheckの条件を同じようにまとめた
This commit is contained in:
kabo2468 2024-03-03 03:48:47 +09:00 committed by GitHub
parent c0dbdd78c1
commit d624547874
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 52 additions and 11 deletions

View file

@ -190,6 +190,14 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkSwitch>
</MkFolder>
<MkFolder v-if="matchQuery([i18n.ts._role._options.skipNsfwDetection, 'skipNsfwDetection'])">
<template #label>{{ i18n.ts._role._options.skipNsfwDetection }}</template>
<template #suffix>{{ policies.skipNsfwDetection ? i18n.ts.yes : i18n.ts.no }}</template>
<MkSwitch v-model="policies.skipNsfwDetection">
<template #label>{{ i18n.ts.enable }}</template>
</MkSwitch>
</MkFolder>
<MkFolder v-if="matchQuery([i18n.ts._role._options.pinMax, 'pinLimit'])">
<template #label>{{ i18n.ts._role._options.pinMax }}</template>
<template #suffix>{{ policies.pinLimit }}</template>