MediaGallery: use original image

virtualized-window
Alex Gleason 2022-03-28 18:00:21 -05:00
rodzic c8bb99af60
commit 51fc8402f2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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') {