0
0
Fork 0

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

This commit is contained in:
Claire 2025-03-05 09:43:31 +01:00 committed by GitHub
parent ce23342d72
commit 26a3081699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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