diff options
Diffstat (limited to 'app/javascript/glitch/components/status/gallery')
-rw-r--r-- | app/javascript/glitch/components/status/gallery/item.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/javascript/glitch/components/status/gallery/item.js b/app/javascript/glitch/components/status/gallery/item.js index ab4aab8dc..7fcc14377 100644 --- a/app/javascript/glitch/components/status/gallery/item.js +++ b/app/javascript/glitch/components/status/gallery/item.js @@ -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') { |