Closed cultpony closed 1 year ago
Ah, I didn't know there was pagination. Will look into it!
If it helps, Mastodon does try to help by returning a Link header; it contains the list of URLs to call like this;
Link: <https://mastodon.instance/api/v1/admin/domain_blocks?max_id=210>; rel="next", <https://mastodon.instance/api/v1/admin/domain_blocks?max_id=310>; rel="prev"
Without parameters, rel=prev can be ignored, so simply recursing down the URL provided via rel=next should eventually yield an empty response (aka no more content) with Link now no longer containing a rel=next URL, only a rel=prev.
Link: <https://mastodon.instance/api/v1/admin/domain_blocks?max_id=100>; rel="prev"
If the response contains no Link header, there is no pagination needed.
When I got to the sync page to bring the censures into my Mastodon instance, it seems only the first page of blocks is processed, meaning that most blocks aren't even shown as missing on Fediseer and that Fediseer is unable to see the blocks it creates.
In the network panel it also seems like a single request is made, which ends up only returning the first results.