1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-30 15:58:28 +09:00

[Glitch] Fix LoadMore usage in account media gallery

(Even though that codepath is probably never actually used…)
This commit is contained in:
Thibaut Girka 2018-12-11 18:51:01 +01:00 committed by ThibG
parent 73ee38f485
commit 5f581d7c3c

View File

@ -35,7 +35,7 @@ class LoadMoreMedia extends ImmutablePureComponent {
return (
<LoadMore
disabled={this.props.disabled}
onLoadMore={this.handleLoadMore}
onClick={this.handleLoadMore}
/>
);
}
@ -124,6 +124,7 @@ export default class AccountGallery extends ImmutablePureComponent {
<LoadMoreMedia
key={'more:' + medias.getIn(index + 1, 'id')}
maxId={index > 0 ? medias.getIn(index - 1, 'id') : null}
onLoadMore={this.handleLoadMore}
/>
) : (
<MediaItem