From 3877b366b36b9cca2cc098215dd531c39ad7a501 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Mon, 3 Apr 2023 09:59:35 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E9=99=A4=E5=A4=96=E7=AF=84=E5=9B=B2?= =?UTF-8?q?=E8=80=83=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 a3f2c39d81..f417d8b6c7 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, From a46bfc7c14e3eac7abe519400ff8fe05fff54602 Mon Sep 17 00:00:00 2001 From: "A.Yamamoto" <49822810+na2na-p@users.noreply.github.com> Date: Mon, 3 Apr 2023 11:23:03 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Acid Chicken (硫酸鶏) --- packages/frontend/src/components/MkPostForm.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index f417d8b6c7..2f1b74baad 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -592,11 +592,7 @@ async function post(ev?: MouseEvent) { text.includes('$[scale') || text.includes('$[position'); - // 対象になる公開範囲の配列 - const inclusionVisibilities: ReadonlyArray<'public' | 'home' | 'followers' | 'specified'> - = ['public']; - - if (annoying && inclusionVisibilities.includes(visibility)) { + if (annoying && visibility === 'public') { const { canceled, result } = await os.actions({ type: 'warning', text: i18n.ts.thisPostMayBeAnnoying,