Kaynağa Gözat

Fix public timeline page not paginating correctly (#10245)

master
Eugen Rochko 5 yıl önce
committed by GitHub
ebeveyn
işleme
da45b8b4c9
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 7 ekleme ve 3 silme
  1. +7
    -3
      app/javascript/mastodon/features/standalone/public_timeline/index.js

+ 7
- 3
app/javascript/mastodon/features/standalone/public_timeline/index.js Dosyayı Görüntüle

@@ -60,9 +60,13 @@ class PublicTimeline extends React.PureComponent {
}
}

handleLoadMore = maxId => {
const { dispatch, local } = this.props;
dispatch(local ? expandCommunityTimeline({ maxId }) : expandPublicTimeline({ maxId }));
handleLoadMore = () => {
const { dispatch, statusIds, local } = this.props;
const maxId = statusIds.last();

if (maxId) {
dispatch(local ? expandCommunityTimeline({ maxId }) : expandPublicTimeline({ maxId }));
}
}

setRef = c => {


Yükleniyor…
İptal
Kaydet