]> cat aescling's git repositories - mastodon.git/commitdiff
Fix some account media gallery items having empty labels (#15073)
authorThibG <thib@sitedethib.com>
Sun, 1 Nov 2020 17:31:39 +0000 (18:31 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 17:31:39 +0000 (18:31 +0100)
Remove the labels entirely for images instead of putting an empty label.

app/javascript/mastodon/features/account_gallery/components/media_item.js

index c9a7af7f77929f611dcf4288d4a506c016594a7c..ba7ec46a3307c313658c09e117babe10f8da922f 100644 (file)
@@ -122,7 +122,7 @@ export default class MediaItem extends ImmutablePureComponent {
         <div className='media-gallery__gifv'>
           {content}
 
-          <span className='media-gallery__gifv__label'>{label}</span>
+          {label && <span className='media-gallery__gifv__label'>{label}</span>}
         </div>
       );
     }