Auto-delete thread if all comments in it are deleted #592
Labels
area: ruby
Changes to server-side code
complexity: easy
Issues that should take limited effort to resolve/fix/build.
priority: medium
type: change request
New feature or request
Prompted by https://meta.codidact.com/posts/283054 and Mith's comment there:
When all comments in a thread are deleted, please also automatically delete the thread. People who can see deleted comments can also see deleted threads, so this doesn't make anything less accessible, and it allows users to clean up comment threads themselves without requiring mod intervention. This can happen if somebody asks a question in a comment and then realizes the answer (and so deletes the comment), or if two people have resolved a discussion and both cleaned up their sides, or if all comments have been deleted through flags.
I think we could do this by modifying the "delete comment" code to, after deletion, check if surviving comments = 0 and if so delete thread too.
The text was updated successfully, but these errors were encountered: