0
0
Fork 0

[Glitch] Allow to open a modal for embedded photo

Port bf7757cbbc to glitch-soc
This commit is contained in:
Thibaut Girka 2018-04-08 23:06:33 +02:00
parent 3ab6a8b8be
commit 0b86ec4e7f
4 changed files with 37 additions and 7 deletions

View file

@ -92,7 +92,7 @@ export default class MediaModal extends ImmutablePureComponent {
const height = image.getIn(['meta', 'original', 'height']) || null;
if (image.get('type') === 'image') {
return <ImageLoader previewSrc={image.get('preview_url')} src={image.get('url')} width={width} height={height} alt={image.get('description')} key={image.get('preview_url')} />;
return <ImageLoader previewSrc={image.get('preview_url')} src={image.get('url')} width={width} height={height} alt={image.get('description')} key={image.get('url')} />;
} else if (image.get('type') === 'gifv') {
return <ExtendedVideoPlayer src={image.get('url')} muted controls={false} width={width} height={height} key={image.get('preview_url')} alt={image.get('description')} />;
}