Fix preview cards under Content Warnings not being shown in detailed statuses (#34068)

This commit is contained in:
Claire authored and GitHub committed 2025-03-05 08:43:31 +00:00
1 parent ce23342d72
commit 26a3081699
1 file changed
+2 -2
@@ -221,12 +221,12 @@ export const DetailedStatus: React.FC<{
/>
);
}
} 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')}
/>
);
}