MediaGallery: use original image
This commit is contained in:
parent
c8bb99af60
commit
51fc8402f2
|
@ -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…
Reference in New Issue