Fix: #531 投稿フォームの公開範囲の選択肢で、スマホから見ると常に「ログインユーザーのみ」が表示される (#549)

This commit is contained in:
KMY(雪あすか) 2024-02-15 12:34:38 +09:00 committed by GitHub
parent 0508671f4e
commit dae8985e41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,15 +271,15 @@ class PrivacyDropdown extends PureComponent {
this.options = this.options.filter((opt) => !['mutual', 'circle'].includes(opt.value));
}
this.selectableOptions = [...this.options];
if (!enableLoginPrivacy) {
this.selectableOptions = this.selectableOptions.filter((opt) => opt.value !== 'login');
this.options = this.options.filter((opt) => opt.value !== 'login');
}
if (!enableLocalPrivacy) {
this.selectableOptions = this.selectableOptions.filter((opt) => opt.value !== 'public_unlisted');
this.options = this.options.filter((opt) => opt.value !== 'public_unlisted');
}
this.selectableOptions = [...this.options];
}
setTargetRef = c => {