From 3877b366b36b9cca2cc098215dd531c39ad7a501 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Mon, 3 Apr 2023 09:59:35 +0900 Subject: [PATCH] =?UTF-8?q?=E9=99=A4=E5=A4=96=E7=AF=84=E5=9B=B2=E8=80=83?= =?UTF-8?q?=E6=85=AE=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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index a3f2c39d8..f417d8b6c 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -591,7 +591,12 @@ async function post(ev?: MouseEvent) { text.includes('$[x4') || text.includes('$[scale') || text.includes('$[position'); - if (annoying) { + + // 対象になる公開範囲の配列 + const inclusionVisibilities: ReadonlyArray<'public' | 'home' | 'followers' | 'specified'> + = ['public']; + + if (annoying && inclusionVisibilities.includes(visibility)) { const { canceled, result } = await os.actions({ type: 'warning', text: i18n.ts.thisPostMayBeAnnoying,