MediaGallery: use original image

virtualized-window
Alex Gleason 3 years ago
parent c8bb99af60
commit 51fc8402f2
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -157,8 +157,6 @@ class Item extends React.PureComponent {
</div>
);
} else if (attachment.get('type') === 'image') {
const previewUrl = attachment.get('preview_url');
const originalUrl = attachment.get('url');
const letterboxed = shouldLetterbox(attachment);
@ -169,7 +167,7 @@ class Item extends React.PureComponent {
onClick={this.handleClick}
target='_blank'
>
<StillImage src={previewUrl} alt={attachment.get('description')} />
<StillImage src={originalUrl} alt={attachment.get('description')} />
</a>
);
} else if (attachment.get('type') === 'gifv') {

Loading…
Cancel
Save