Do not show link preview card if toot has a spoiler (#1617)

* Do not show link preview card if toot has a spoiler

* == to ===
lolsob-rspec
Isabelle Knott 2017-04-19 08:28:00 -04:00 committed by Eugen
parent 13e8bd3bc2
commit de57e481fe
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const DetailedStatus = React.createClass({
} else {
media = <MediaGallery sensitive={status.get('sensitive')} media={status.get('media_attachments')} height={300} onOpenMedia={this.props.onOpenMedia} autoPlayGif={this.props.autoPlayGif} />;
}
} else {
} else if (status.get('spoiler_text').length === 0) {
media = <CardContainer statusId={status.get('id')} />;
}