mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Repro steps: - enable permanent deletes (via hidden site setting) - set `min_topic_views_for_delete_confirm` to 0 When permanently deleting, the delete confirm modal is shown (for a second time) and it doesn't pass the `force_destroy` parameter to the request and the action results in a 422 error (i.e. can't perma-delete). This change skips showing the confirm modal when perma-deleting given that it has already been show on the first delete action.