Topic: [Bug] API usage on comments returns post information instead

Posted under Site Bug Reports & Feature Requests

While doing a request to the comments URL using comments?tags=id:[post_id] the response is correct
However, while doing the same request with comments.json?tags=id:[post_id] the response is the post's information, not the post's comment information

e.g.
https://e621.net/comments?tags=id:2365945 -> returns comment information as HTML(expected)
https://e621.net/comments.json?tags=id:2365945 -> returns post's information as JSON(unexpected, comment info expected)

In another words:
posts.json?tags=id:[post_id] == comments.json?tags=id:[post_id]
only on *.json calls

i.e.
https://e621.net/posts.json?tags=id:2365945
https://e621.net/comments.json?tags=id:2365945
issue the same response

Not sure if this is a direct result of using non-wiki-defined behaviour(to the best of my knowledge)

  • 1