Fix: ブースト時に選択できる公開範囲に限定投稿が含まれる問題 (#460)
This commit is contained in:
parent
aefe147c2b
commit
e087286bea
2 changed files with 6 additions and 0 deletions
|
@ -169,6 +169,7 @@ class PrivacyDropdown extends PureComponent {
|
||||||
value: PropTypes.string.isRequired,
|
value: PropTypes.string.isRequired,
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
noDirect: PropTypes.bool,
|
noDirect: PropTypes.bool,
|
||||||
|
noLimited: PropTypes.bool,
|
||||||
replyToLimited: PropTypes.bool,
|
replyToLimited: PropTypes.bool,
|
||||||
container: PropTypes.func,
|
container: PropTypes.func,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
|
@ -260,6 +261,10 @@ class PrivacyDropdown extends PureComponent {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.props.noLimited) {
|
||||||
|
this.options = this.options.filter((opt) => !['mutual', 'circle'].includes(opt.value));
|
||||||
|
}
|
||||||
|
|
||||||
this.selectableOptions = [...this.options];
|
this.selectableOptions = [...this.options];
|
||||||
|
|
||||||
if (!enableLoginPrivacy) {
|
if (!enableLoginPrivacy) {
|
||||||
|
|
|
@ -110,6 +110,7 @@ class BoostModal extends ImmutablePureComponent {
|
||||||
{status.get('visibility') !== 'private' && !status.get('reblogged') && (
|
{status.get('visibility') !== 'private' && !status.get('reblogged') && (
|
||||||
<PrivacyDropdown
|
<PrivacyDropdown
|
||||||
noDirect
|
noDirect
|
||||||
|
noLimited
|
||||||
value={privacy}
|
value={privacy}
|
||||||
container={this._findContainer}
|
container={this._findContainer}
|
||||||
onChange={this.props.onChangeBoostPrivacy}
|
onChange={this.props.onChangeBoostPrivacy}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue