From 3877b366b36b9cca2cc098215dd531c39ad7a501 Mon Sep 17 00:00:00 2001
From: na2na-p <na2na@na2na.dev>
Date: Mon, 3 Apr 2023 09:59:35 +0900
Subject: 除外範囲考慮するように
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(-)

(limited to 'packages/frontend/src/components/MkPostForm.vue')

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,
-- 
cgit v1.2.3-freya


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: レビュー対応
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
---
 packages/frontend/src/components/MkPostForm.vue | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'packages/frontend/src/components/MkPostForm.vue')

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,
-- 
cgit v1.2.3-freya

