chore:change maxID to minID

This commit is contained in:
sunxiaojian 2021-02-05 15:21:07 +08:00
parent 6ff1a0c88e
commit 61dc0cb2cd
2 changed files with 2 additions and 3 deletions

View File

@ -52,10 +52,9 @@ extension PublicTimelineViewModel.LoadMiddleState {
stateMachine.enter(Fail.self)
return
}
let maxID = upperTimelineTootID
viewModel.context.apiService.publicTimeline(
domain: activeMastodonAuthenticationBox.domain,
maxID: maxID
minID: upperTimelineTootID
)
.receive(on: DispatchQueue.main)
.sink { completion in

View File

@ -29,7 +29,7 @@ extension APIService {
onlyMedia: nil,
maxID: maxID,
sinceID: sinceID,
minID: nil, // prefer sinceID
minID: minID, // prefer sinceID
limit: limit
)