Skip to content
Snippets Groups Projects
Commit 1ddf1aed authored by Renato "Lond" Cerqueira's avatar Renato "Lond" Cerqueira Committed by Claire
Browse files

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

parent 931870ca
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment