diff --git a/saoriview.cpp b/saoriview.cpp index 7747366..77c2e8e 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -50,10 +51,14 @@ auto saoriaccount = SaoriApplication::saori()->findAccount(m_account); if (saoriaccount) { connect(saoriaccount,&SaoriAccount::apiData,this,&SaoriView::recived); - saoriaccount->getTimelineData(view); + saoriaccount->getTimelineData(view,QUrlQuery()); connect(ui->scrollArea->verticalScrollBar(),&QScrollBar::valueChanged,this,[=](int p){ if (ui->scrollArea->verticalScrollBar()->maximum() == p) { - saoriaccount->getTimelineData(view); + if (m_entries.count()) { + QUrlQuery q; + q.addQueryItem("max_id",QString::number(m_entries.last()->id())); + saoriaccount->getTimelineData(view,q); + } } }); }