From 89d2859296bc5a57a8db07be86239cc938a3f691 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 5 May 2019 21:09:45 +0200 Subject: Fix content warning button displaying a link icon when no status card is set --- .../flavours/glitch/features/status/components/detailed_status.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/javascript') 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 0b162ed36..03d98fde8 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'; } -- cgit