Top-level
5 comments
Hi, #snac author here again. I've installed Pachli and I'm experimenting the same issue than @nowster@fedi.nowster.me.uk: it keeps requesting the first page over and over again, with no
max_id nor since_id fields to paginate, only a limit field of 40.
CC: @justine@snac.smithies.me.uk @grunfink @nowster @justine The link header is not being sent by snac. I have a test account with 4 statuses in the home timeline. /api/v1/timelines/home returns all 4 statuses and no link header in the response. /api/v1/timelines/home?limit=1 returns an array of 1 status, as expected, but is also missing the link header, so can't be paginated. @grunfink @nowster @justine The Mastodon docs are a bit ambiguous about this. Arguably, if the link header is missing a client could assume it could behave as though it did exist, with the IDs of the first and last items in the returned page. That might be what snac is doing. For interoperability purposes it's probably better to always return the link header. |
@nowster @justine Thanks for the test account.
There are at least two #snac bugs.
I've filed one of them at https://codeberg.org/grunfink/snac2/issues/241 (this also found a Pachli bug where errors during login weren't showing the underlying login error; I've fixed that now, thanks).
The other is the existing https://codeberg.org/grunfink/snac2/issues/164 -- snac doesn't implement https://docs.joinmastodon.org/api/guidelines/#pagination so Mastodon clients can't iterate through timelines to load them a page at a time.
@nowster @justine Thanks for the test account.
There are at least two #snac bugs.
I've filed one of them at https://codeberg.org/grunfink/snac2/issues/241 (this also found a Pachli bug where errors during login weren't showing the underlying login error; I've fixed that now, thanks).
The other is the existing https://codeberg.org/grunfink/snac2/issues/164 -- snac doesn't implement https://docs.joinmastodon.org/api/guidelines/#pagination so Mastodon clients can't iterate through timelines to load...