mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
When we delete a post that has replies, we show a modal asking if the user wants to delete the post, the post and its direct replies or the post and all its replies. If replies are deleted before a post, that modal would ask the user if they want to delete the post and 0 replies. That commit ensure we skip the modal and directly delete the post in this case.