Donmai

Child of a hard deleted post

Posted under General

I'm doing integrity checks and found post #1488656 is the only one that claims to have children but they are nowhere to be found, not even under deleted. I'm guessing the child has since be permanently deleted? Please, think of the children.

Related to that, there's about 861 posts where they say HasActiveChildren is true, but should be false. post #13702 is an example.

HasVisibleChildren always seems to be the same as HasChildren, too.

Updated

EMUltra3 said:

I'm doing integrity checks and found post #1488656 is the only one that claims to have children but they are nowhere to be found, not even under deleted. I'm guessing the child has since be permanently deleted? Please, think of the children.

Not sure how that happened. Permanently deleting a child does update the parent, unless there's a bug there.

Related to that, there's about 861 posts where they say HasActiveChildren is true, but should be false. post #13702 is an example.

Looks like this was reported in issue #2310. Not sure what the cause is here either, but if you give the post a child then remove the child it should update the flag.

HasVisibleChildren always seems to be the same as HasChildren, too.

HasVisibleChildren depends on the "Show deleted children" setting in your profile. It's supposed to be true if there are any active (i.e. undeleted) children, or if "Show deleted children" is on then if there are any children at all. Also it's true if the parent is deleted and there are any children.

evazion said:

HasVisibleChildren depends on the "Show deleted children" setting in your profile. It's supposed to be true if there are any active (i.e. undeleted) children, or if "Show deleted children" is on then if there are any children at all. Also it's true if the parent is deleted and there are any children.

I can validate this... I have the "Show deleted children" setting to false, and the "has_children" entry is shown as true and the "has_visible_children" entry is shown as false when I make the following query:

http://danbooru.donmai.us/posts/2581921.json

If your setting for "Show deleted children" is set to true, the both would show up as true.

1