[Glitch] Fix preview cards under Content Warnings not being shown in detailed statuses

Port 26a3081699 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2986/head
Claire 2025-03-05 09:43:31 +01:00
parent dbd3e05812
commit 71afcd42e1
1 changed files with 2 additions and 2 deletions

View File

@ -243,12 +243,12 @@ export const DetailedStatus: React.FC<{
);
mediaIcons.push('video-camera');
}
} else if (status.get('spoiler_text').length === 0) {
} else if (status.get('card')) {
media = (
<Card
sensitive={status.get('sensitive')}
onOpenMedia={onOpenMedia}
card={status.get('card', null)}
card={status.get('card')}
/>
);
mediaIcons.push('link');