From 302f4e61c0c90239d0fcb0ddc0f2c521a6054d51 Mon Sep 17 00:00:00 2001 From: Esurio Date: Wed, 31 Jul 2024 08:35:38 +0000 Subject: [PATCH] =?UTF-8?q?enhance:=20=E3=82=BB=E3=83=B3=E3=82=B7=E3=83=86?= =?UTF-8?q?=E3=82=A3=E3=83=96=E3=81=AA=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC?= =?UTF-8?q?=E3=81=8C=E6=8A=95=E7=A8=BF=E3=81=99=E3=82=8B=E9=9A=9B=E3=81=AB?= =?UTF-8?q?=E3=81=AF=E5=B8=B8=E3=81=ABCW=E3=82=92=E6=8A=95=E7=A8=BF?= =?UTF-8?q?=E3=83=95=E3=82=A9=E3=83=BC=E3=83=A0=E3=81=A7=E4=BB=98=E4=B8=8E?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkPostForm.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 54058f970f..0ddf9cd851 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -132,6 +132,7 @@ import { vibrate } from '@/scripts/vibrate.js'; import * as sound from '@/scripts/sound.js'; import { mfmFunctionPicker } from '@/scripts/mfm-function-picker.js'; + const $i = signinRequired(); const modal = inject('modal'); @@ -343,6 +344,11 @@ if ($i.isSilenced && visibility.value === 'public') { visibility.value = 'home'; } +if ($i.isSensitive && !useCw.value) { + useCw.value = true; + cw.value = i18n.ts.sensitiveUserCaution +} + if (props.channel) { visibility.value = 'public'; localOnly.value = true; // TODO: チャンネルが連合するようになった折には消す