Topic: [Bug] /post/show.json => "has_children":false,"children":"901341"

Posted under Site Bug Reports & Feature Requests

Bug overview description.
/post/show.json returns contradictory information about a posts's children
post #1306939

What part(s) of the site page(s) are affected?
API => /post/show.json

What is the expected behavior?
Either
"has_children":false,"children":""
or
"has_children":true,"children":"901341"

What actual behavior is given instead?
"has_children":false,"children":"901341"

Time of incident (if applicable).
Always

Can you reproduce the bug every time?
Yes

What steps did you take to replicate this bug?
API => https://e621.net/post/show.json
{"id": 1306939}

Errors or other messages returned (if any).
None

Updated by Chaser

This is technically correct
:children contains both deleted and non-deleted posts
However, :has_children refers to a test for if parent_id is post_id and status is not deleted in the database.

Updated by anonymous

  • 1