]> cat aescling's git repositories - mastodon.git/commitdiff
Fix LoadMore on account media gallery (#6933)
authorunarist <m.unarist@gmail.com>
Tue, 27 Mar 2018 14:53:52 +0000 (23:53 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Mar 2018 14:53:52 +0000 (16:53 +0200)
max_id in the fetch request should be a status id, but media attachment id was used.

app/javascript/mastodon/features/account_gallery/index.js

index 9a40d139cb8ff0abb488f9e541d67686e7b9a09e..5f564d3a9d22206d2c4de0507e8855eb0fa84284 100644 (file)
@@ -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']));
     }
   }