Steps to reproduce
Post a work
Leave a comment on the work
Reply to the comment you left
Log in as admin
Access the first comment
Press "Spam" to mark it as spam
The comment sticks around. You get a red flash error near the comment box with the text, "We couldn't delete that comment."
What should happen
You should be able to delete the comment.
This bug only seems to happen on production, not staging.
Comments with replies are not actually deleted outright, but rather marked is_deleted. If you try to set the comment's is_deleted value to true on the console, you get the error, "ActiveRecord::RecordInvalid (Validation failed: This comment looks like spam to our system, sorry! Please try again, or create an account to comment.)"
The child comments disappearing when the comment is marked as spam is AO3-5002.
This might have been fixed by fussing with the callbacks in – we no longer check for spam when delete/updating guest comments, only when creating.