From 847f3862c3018a32c865317e95632bf6df5f1682 Mon Sep 17 00:00:00 2001 From: tykayn Date: Thu, 14 Jan 2021 10:01:30 +0100 Subject: [PATCH] do not limit to 4 medias in display of media gallery --- app/javascript/mastodon/components/media_gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 0a8f42585..674b699ad 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -329,13 +329,13 @@ class MediaGallery extends React.PureComponent { style.height = height; } - const size = media.take(4).size; + const size = media.size; const uncached = media.every(attachment => attachment.get('type') === 'unknown'); if (standalone && this.isFullSizeEligible()) { children = ; } else { - children = media.take(4).map((attachment, i) => ); + children = media.map((attachment, i) => ); } if (uncached) {