From: unarist Date: Tue, 27 Mar 2018 14:53:52 +0000 (+0900) Subject: Fix LoadMore on account media gallery (#6933) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=3523aa440ba3f52bf28fe1e9707506d327c4431f;p=mastodon.git Fix LoadMore on account media gallery (#6933) max_id in the fetch request should be a status id, but media attachment id was used. --- diff --git a/app/javascript/mastodon/features/account_gallery/index.js b/app/javascript/mastodon/features/account_gallery/index.js index 9a40d139c..5f564d3a9 100644 --- a/app/javascript/mastodon/features/account_gallery/index.js +++ b/app/javascript/mastodon/features/account_gallery/index.js @@ -67,7 +67,7 @@ export default class AccountGallery extends ImmutablePureComponent { handleScrollToBottom = () => { if (this.props.hasMore) { - this.handleLoadMore(this.props.medias.last().get('id')); + this.handleLoadMore(this.props.medias.last().getIn(['status', 'id'])); } }