From 97012487ed4bbc7cbba214bf63c56260887c589d Mon Sep 17 00:00:00 2001 From: Isabelle Knott Date: Wed, 19 Apr 2017 08:28:00 -0400 Subject: [PATCH] Do not show link preview card if toot has a spoiler (#1617) * Do not show link preview card if toot has a spoiler * == to === --- .../components/features/status/components/detailed_status.jsx | 2 +- 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 index bd386b2517c..9d854f0d3a7 100644 --- 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 = ; } - } else { + } else if (status.get('spoiler_text').length === 0) { media = ; }