From 5052b8c29f613f717d5974b779ead2e5eb80a879 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 5 May 2019 21:09:45 +0200 Subject: [PATCH] Fix content warning button displaying a link icon when no status card is set --- .../glitch/features/status/components/detailed_status.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 0b162ed365..03d98fde85 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -112,7 +112,7 @@ export default class DetailedStatus extends ImmutablePureComponent { return null; } - let media = ''; + let media = null; let mediaIcon = null; let applicationLink = ''; let reblogLink = ''; @@ -163,8 +163,8 @@ export default class DetailedStatus extends ImmutablePureComponent { ); mediaIcon = 'picture-o'; } - } else { - media = ; + } else if (status.get('card')) { + media = ; mediaIcon = 'link'; }