Hello, still working on my e621 app. I've noticed that the number of comments returned from the /comment/index.json endpoint varies depending on the specific page and post ID.
As a specific example, for post #1039976:
~> curl "https://e621.net/comment/index.json?post_id=1039976&page=1" | jq length 23
~> curl "https://e621.net/comment/index.json?post_id=1039976&page=2" | jq length 6
Adding &status=any doesn't change the output, and these two pages contain all of the comments on the post anyway. Removing the post_id parameter returns 25 comments consistently (although for all posts).
It's not a major problem and I can code around it, but I'm just wondering why it's not consistently returning 25 comments like how /post/index.json consistently returns limit=75 posts until the last page.
I've been using the number of returned objects to check if there are potentially more pages to load, which saves a network request when the last page has less elements than the page size. (e.g. 30 posts when limit=75). Which is every search that isn't a multiple of the limit (almost all of them).
Updated