commit: 3523aa440ba3f52bf28fe1e9707506d327c4431f
parent: f5ed5f386020a08e8a659f4a6d25d2b875852be8
Author: unarist <m.unarist@gmail.com>
Date: Tue, 27 Mar 2018 23:53:52 +0900
Fix LoadMore on account media gallery (#6933)
max_id in the fetch request should be a status id, but media attachment id was used.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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']));
}
}