So the first link is to the collection, which of course links to the latest page at the time of generation
The second link's query parameter points at the first item from this page you'd like (assuming it is indeed in the collection) then gives the N (eg 20) items in the page. Then link to then next one!
@cwebber Super helpful, thank you!
@jdormit @cwebber That's how I do paging at rhiaro.co.uk too. Internally everything is stored as AS2 collections and then 16-item pages are dynamically generated, eg. https://rhiaro.co.uk/tags/activitypub?before=https://rhiaro.co.uk/2016/05/minimal and secret feature, you can add &limit=x to the URL to change the page size. It works with conneg to application/activity+json too if you curl it
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!