mirror of https://github.com/mastodon/mastodon.git
Handle destroyed records in action log
parent
cbc4766702
commit
d32889bd98
|
@ -4,7 +4,7 @@ module AccountableConcern
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
def log_action(action, target)
|
||||
return unless target.previous_changes.any?
|
||||
return unless target.previous_changes.any? || target.destroyed?
|
||||
|
||||
Admin::ActionLog.create(
|
||||
account: current_account,
|
||||
|
|
Loading…
Reference in New Issue