Fix our media gallery not having alt text and tooltips

This commit is contained in:
Ondřej Hruška 2017-10-11 22:02:24 +02:00
parent b0b5ff1b0f
commit eeaa8fba43
No known key found for this signature in database
GPG key ID: 2C5FD5035250423D

View file

@ -117,7 +117,13 @@ export default class StatusGalleryItem extends React.PureComponent {
onClick={this.handleClick} onClick={this.handleClick}
target='_blank' target='_blank'
> >
<img className={letterbox ? 'letterbox' : ''} src={previewUrl} srcSet={srcSet} sizes={sizes} alt='' /> <img
className={letterbox ? 'letterbox' : ''}
src={previewUrl} srcSet={srcSet}
sizes={sizes}
alt={attachment.get('description')}
title={attachment.get('description')}
/>
</a> </a>
); );
} else if (attachment.get('type') === 'gifv') { } else if (attachment.get('type') === 'gifv') {