From c31d2e256318df04505e4cf22994001d2d4eaf0a Mon Sep 17 00:00:00 2001 From: ozelot Date: Fri, 3 Nov 2023 17:52:31 +0900 Subject: [PATCH] =?UTF-8?q?=20fix(frontend):=20=E3=82=B5=E3=82=A4=E3=83=AC?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E7=8A=B6=E6=85=8B=E3=81=A7=E5=85=AC=E9=96=8B?= =?UTF-8?q?=E7=AF=84=E5=9B=B2=E3=81=AE=E3=83=91=E3=83=96=E3=83=AA=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=82=92=E9=81=B8=E6=8A=9E=E3=81=A7=E3=81=8D=E3=81=A6?= =?UTF-8?q?=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#12224)=20(#12225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend): サイレンス状態で公開範囲のパブリックを選択できてしまう問題を修正 (#12224) * docs: update changelog --------- Co-authored-by: syuilo --- CHANGELOG.md | 1 + packages/frontend/src/components/MkPostForm.vue | 5 +++++ packages/frontend/src/components/MkVisibilityPicker.vue | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d096d02e62..c6844ea2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ - Fix: 個人カードのemojiがバッテリーになっている問題を修正 - Fix: 標準テーマと同じIDを使用してインストールできてしまう問題を修正 - Fix: 絵文字ピッカーでバッテリーの絵文字が複数表示される問題を修正 #12197 +- Fix: サイレンス状態で公開範囲のパブリックを選択できてしまう問題を修正 #12224 - Fix: In deck layout, replies option is not saved after refresh ### Server diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 46faae9523..c0fd1c14d7 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -299,6 +299,10 @@ if (props.reply && props.reply.text != null) { } } +if ($i?.isSilenced && visibility === 'public') { + visibility = 'home'; +} + if (props.channel) { visibility = 'public'; localOnly = true; // TODO: チャンネルが連合するようになった折には消す @@ -448,6 +452,7 @@ function setVisibility() { os.popup(defineAsyncComponent(() => import('@/components/MkVisibilityPicker.vue')), { currentVisibility: visibility, + isSilenced: $i?.isSilenced, localOnly: localOnly, src: visibilityButton, }, { diff --git a/packages/frontend/src/components/MkVisibilityPicker.vue b/packages/frontend/src/components/MkVisibilityPicker.vue index 982a69925b..bbb3d3dbf5 100644 --- a/packages/frontend/src/components/MkVisibilityPicker.vue +++ b/packages/frontend/src/components/MkVisibilityPicker.vue @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.visibility }}
-