From: ThibG Date: Sun, 1 Nov 2020 17:31:39 +0000 (+0100) Subject: Fix some account media gallery items having empty labels (#15073) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=9d023ed4f6d8a69699d14479d5e12132ea4f4cd2;p=mastodon.git Fix some account media gallery items having empty labels (#15073) Remove the labels entirely for images instead of putting an empty label. --- 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 {
{content} - {label} + {label && {label}}
); }