Kirschn/mastodon.js

Question: How to build timeline pagination?

Closed this issue · 1 comments

pwFoo commented

Question isn't mastodon.js related, but mastodon api and I haven't found an example about...

How to build timeline pagination? I know since_id, max_id and limit, but don't know how to use to get a working pagination for timeline.

pwFoo commented

Answered by Gargron

min_id is new, it'll come in 2.6.0

6 5 4 3 2 1

max_id=3 limit=2 will give you 2 1
since_id=3 limit=2 will give you 6 5
min_id=3 limit=2 will give you 5 4