MediaGallery: fall back on url when preview_url isn't provided

This commit is contained in:
Alex Gleason
2022-02-07 12:26:11 -06:00
parent 2c51054ae4
commit c4bf347dae
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class Item extends React.PureComponent {
onClick={this.handleClick}
target='_blank'
>
<StillImage src={previewUrl} alt={attachment.get('description')} />
<StillImage src={previewUrl || originalUrl} alt={attachment.get('description')} />
</a>
);
} else if (attachment.get('type') === 'gifv') {