diff options
| author | ozelot <contact@ozelot.dev> | 2023-11-03 17:52:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 17:52:31 +0900 |
| commit | c31d2e256318df04505e4cf22994001d2d4eaf0a (patch) | |
| tree | 15235816fd5e098745f03f4e649e3d69661e9451 /packages/frontend/src/components/MkPostForm.vue | |
| parent | enhance(frontend): federated instance icon with proxy (welcome entrance) (#12... (diff) | |
| download | misskey-c31d2e256318df04505e4cf22994001d2d4eaf0a.tar.gz misskey-c31d2e256318df04505e4cf22994001d2d4eaf0a.tar.bz2 misskey-c31d2e256318df04505e4cf22994001d2d4eaf0a.zip | |
fix(frontend): サイレンス状態で公開範囲のパブリックを選択できてしまう問題を修正 (#12224) (#12225)
* fix(frontend): サイレンス状態で公開範囲のパブリックを選択できてしまう問題を修正 (#12224)
* docs: update changelog
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 5 |
1 files changed, 5 insertions, 0 deletions
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, }, { |