mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
When deleting a post as staff, ask if you want to delete direct replies too
This commit is contained in:
@@ -159,8 +159,7 @@ class PostsController < ApplicationController
|
||||
|
||||
Post.transaction do
|
||||
topic_id = posts.first.topic_id
|
||||
posts.each {|p| p.destroy }
|
||||
Topic.reset_highest(topic_id)
|
||||
posts.each {|p| PostDestroyer.new(current_user, p).destroy }
|
||||
end
|
||||
|
||||
render nothing: true
|
||||
|
||||
Reference in New Issue
Block a user