about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-11-01 18:31:39 +0100
committerGitHub <noreply@github.com>2020-11-01 18:31:39 +0100
commit9d023ed4f6d8a69699d14479d5e12132ea4f4cd2 (patch)
tree4116abb6531892c93ad7950ad8dbc4d57809cd83 /app
parentc49805efb1b9eaca46c774ef6f9b27d0f18363c0 (diff)
Fix some account media gallery items having empty labels (#15073)
Remove the labels entirely for images instead of putting an empty label.
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/account_gallery/components/media_item.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/account_gallery/components/media_item.js b/app/javascript/mastodon/features/account_gallery/components/media_item.js
index c9a7af7f7..ba7ec46a3 100644
--- a/app/javascript/mastodon/features/account_gallery/components/media_item.js
+++ b/app/javascript/mastodon/features/account_gallery/components/media_item.js
@@ -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>
       );
     }