logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 97012487ed4bbc7cbba214bf63c56260887c589d
parent: 9a7ea7c870280b9997c47f3fcdea82296c23fb68
Author: Isabelle Knott <isabelle@blackle-mori.com>
Date:   Wed, 19 Apr 2017 08:28:00 -0400

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

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

* == to ===

Diffstat:

Mapp/assets/javascripts/components/features/status/components/detailed_status.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/components/features/status/components/detailed_status.jsx b/app/assets/javascripts/components/features/status/components/detailed_status.jsx @@ -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')} />; }