about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2018-03-27 23:53:52 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-27 16:53:52 +0200
commit3523aa440ba3f52bf28fe1e9707506d327c4431f (patch)
tree475a6e78d4c9812a00ace72c05e49fe8312afa20 /app
parentf5ed5f386020a08e8a659f4a6d25d2b875852be8 (diff)
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 (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/account_gallery/index.js2
1 files changed, 1 insertions, 1 deletions
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']));
     }
   }