Fix our media gallery not having alt text and tooltips

lolsob-rspec
Ondřej Hruška 2017-10-11 22:02:24 +02:00
parent f8749b268c
commit d08756cfc3
1 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,13 @@ export default class StatusGalleryItem extends React.PureComponent {
onClick={this.handleClick}
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>
);
} else if (attachment.get('type') === 'gifv') {