Fix card blur when cw post
This commit is contained in:
parent
84efc24e06
commit
87a8da93e8
2 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ class Status extends ImmutablePureComponent {
|
||||||
onOpenMedia={this.handleOpenMedia}
|
onOpenMedia={this.handleOpenMedia}
|
||||||
card={status.get('card')}
|
card={status.get('card')}
|
||||||
compact
|
compact
|
||||||
sensitive={status.get('sensitive')}
|
sensitive={status.get('sensitive') && !status.get('spoiler_text')}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
isCardMediaWithSensitive = status.get('spoiler_text').length > 0;
|
isCardMediaWithSensitive = status.get('spoiler_text').length > 0;
|
||||||
|
|
|
@ -232,7 +232,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if (status.get('card')) {
|
} else if (status.get('card')) {
|
||||||
media = <Card sensitive={status.get('sensitive')} onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />;
|
media = <Card sensitive={status.get('sensitive') && !status.get('spoiler_text')} onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />;
|
||||||
isCardMediaWithSensitive = status.get('spoiler_text').length > 0;
|
isCardMediaWithSensitive = status.get('spoiler_text').length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue