Fix 'unknown' media attachment rendering in detailed view (#32713)

pull/32080/head
Renato "Lond" Cerqueira 4 months ago committed by GitHub
parent e1b7382ea6
commit 01e25af2e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -152,7 +152,7 @@ export const DetailedStatus: React.FC<{
media = <PictureInPicturePlaceholder aspectRatio={attachmentAspectRatio} />;
} else if (status.get('media_attachments').size > 0) {
if (
['image', 'gifv'].includes(
['image', 'gifv', 'unknown'].includes(
status.getIn(['media_attachments', 0, 'type']) as string,
) ||
status.get('media_attachments').size > 1

Loading…
Cancel
Save