mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: log topic/post deletions from staff members
This commit is contained in:
@@ -167,7 +167,7 @@ class PostsController < ApplicationController
|
||||
|
||||
guardian.ensure_can_delete!(post)
|
||||
|
||||
destroyer = PostDestroyer.new(current_user, post)
|
||||
destroyer = PostDestroyer.new(current_user, post, { context: params[:context] })
|
||||
destroyer.destroy
|
||||
|
||||
render nothing: true
|
||||
|
||||
Reference in New Issue
Block a user