Skip to content

Commit

Permalink
[Glitch] Fix 'unknown' media attachment type rendering
Browse files Browse the repository at this point in the history
Port 346cdb9 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ThisIsMissEm authored and ClearlyClaire committed Oct 26, 2024
1 parent d304540 commit 28287eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/flavours/glitch/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ class Status extends ImmutablePureComponent {
media={status.get('media_attachments')}
/>,
);
} else if (['image', 'gifv'].includes(status.getIn(['media_attachments', 0, 'type'])) || status.get('media_attachments').size > 1) {
} else if (['image', 'gifv', 'unknown'].includes(status.getIn(['media_attachments', 0, 'type'])) || status.get('media_attachments').size > 1) {
media.push(
<Bundle fetchComponent={MediaGallery} loading={this.renderLoadingMediaGallery}>
{Component => (
Expand Down

0 comments on commit 28287eb

Please sign in to comment.