mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Add deleted_by
to Trashable
tables
This commit is contained in:
@ -169,7 +169,7 @@ class TopicsController < ApplicationController
|
||||
def destroy
|
||||
topic = Topic.where(id: params[:id]).first
|
||||
guardian.ensure_can_delete!(topic)
|
||||
topic.trash!
|
||||
topic.trash!(current_user)
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user