Skip to content

Commit

Permalink
Fix 'unknown' media attachment rendering in detailed view (mastodon#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolond authored Oct 31, 2024
1 parent e1b7382 commit 01e25af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01e25af

Please sign in to comment.