Fix card blur when cw post

This commit is contained in:
KMY 2023-08-18 18:53:15 +09:00
parent 84efc24e06
commit 87a8da93e8
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;
} }