Browse Source

Remove wrong negation to fix the alt text badge

lets-bump-hometown-to-mastodon-4.2
nachtjasmin 2 years ago
parent
commit
427f510187
No known key found for this signature in database
  1. 2
      app/javascript/mastodon/components/media_gallery.jsx

2
app/javascript/mastodon/components/media_gallery.jsx

@ -101,7 +101,7 @@ class Item extends PureComponent {
height = 50;
}
const hasMediaDescription = !attachment.get('description')?.length > 0;
const hasMediaDescription = attachment.get('description')?.length > 0;
if (hasMediaDescription) {
badges.push(<span key='alt' className='media-gallery__gifv__label'>ALT</span>);
}

Loading…
Cancel
Save