Skip to content

Commit

Permalink
[Glitch] Fix 'unknown' media attachment rendering in detailed view
Browse files Browse the repository at this point in the history
Port 01e25af to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
renatolond authored and ClearlyClaire committed Nov 3, 2024
1 parent 95c95da commit 4d9d10e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const DetailedStatus: React.FC<{
) {
media.push(<AttachmentList media={status.get('media_attachments')} />);
} else 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 4d9d10e

Please sign in to comment.