Project Information
- Repository: https://github.com/steemit/hivemind
- Project Name: Hivemind
- Main issue: https://github.com/steemit/hivemind/issues/208
- Problem on Steemit.com due to this bug: https://github.com/steemit/condenser/issues/3386
Note that PO has already acknowledged the bug (labeled bug see also comment in the issue of condenser). Do not test this on your own unless you're familiar with using API to delete it, since you may not be able to delete your test comment otherwise.
Expected behavior
A user should be able to delete a comment when all child comments are deleted.
Actual behavior
A user cannot delete a comment due to no delete button even after all child comments are deleted.
How to reproduce
(See the recording)
- Write nested comments.
- Delete the child comment and refresh.
- You can't see "delete" anymore no matter how many times you refresh. (Of course, there was no vote or child).
Cause
I analyzed the cause of the bug and the problem was due to the Hivemind's children field, which set to 1 if there is any child comment, 0 otherwise.
Even after deleted, steemd (which uses Hivemind) says that children = 1
api.steemit.com returns children = 0 correctly, so I was able to delete the comment by using API, connecting to api.steemit.com instead of Hivemind.
steemit.com is using Hivemind, so the comment's children field is set to 1 even after deleting all child comments, and that's why delete link is not shown.
- Browser/App version: Any
- Operating system: Any
Recording Of The Bug
- Write nested comments as follows:
- Delete the child comment and refresh
- You can't see "delete" anymore no matter how many times you refresh. (Of course, there was no vote or child).