mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add deleted_by to Trashable tables
This commit is contained in:
@@ -54,9 +54,9 @@ class Post < ActiveRecord::Base
|
||||
@types ||= Enum.new(:regular, :moderator_action)
|
||||
end
|
||||
|
||||
def trash!
|
||||
def trash!(trashed_by=nil)
|
||||
self.topic_links.each(&:destroy)
|
||||
super
|
||||
super(trashed_by)
|
||||
end
|
||||
|
||||
def recover!
|
||||
|
||||
Reference in New Issue
Block a user