From 644caeb156a6debf197379e4826e257af3b2bc69 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 5 Mar 2025 09:43:31 +0100 Subject: [PATCH] [Glitch] Fix preview cards under Content Warnings not being shown in detailed statuses Port 1ed1cdba1bbd1b059e434640768c3bbb6d2608ea to glitch-soc Signed-off-by: Claire --- .../glitch/features/status/components/detailed_status.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx index 9780720d42..3fd998992d 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx @@ -273,12 +273,12 @@ export const DetailedStatus: React.FC<{ ); mediaIcons.push('video-camera'); } - } else if (status.get('spoiler_text').length === 0) { + } else if (status.get('card')) { media.push( , ); mediaIcons.push('link');