mirror of
https://github.com/mastodon/mastodon
synced 2025-01-09 11:23:00 +09:00
Fix 'unknown' media attachment rendering in detailed view (#32713)
This commit is contained in:
parent
d1ac124cc0
commit
9e975048ad
@ -152,7 +152,7 @@ export const DetailedStatus: React.FC<{
|
|||||||
media = <PictureInPicturePlaceholder aspectRatio={attachmentAspectRatio} />;
|
media = <PictureInPicturePlaceholder aspectRatio={attachmentAspectRatio} />;
|
||||||
} else if (status.get('media_attachments').size > 0) {
|
} else if (status.get('media_attachments').size > 0) {
|
||||||
if (
|
if (
|
||||||
['image', 'gifv'].includes(
|
['image', 'gifv', 'unknown'].includes(
|
||||||
status.getIn(['media_attachments', 0, 'type']) as string,
|
status.getIn(['media_attachments', 0, 'type']) as string,
|
||||||
) ||
|
) ||
|
||||||
status.get('media_attachments').size > 1
|
status.get('media_attachments').size > 1
|
||||||
|
Loading…
Reference in New Issue
Block a user