From cc3cf7b6061ac11c86d7c73456f33144f4ccefea Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 15 Aug 2019 09:26:55 -0500 Subject: `target_account.user` -> `target_account` --- app/models/admin/account_action.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/models/admin/account_action.rb') diff --git a/app/models/admin/account_action.rb b/app/models/admin/account_action.rb index 2195dc6a9..cb6b4715a 100644 --- a/app/models/admin/account_action.rb +++ b/app/models/admin/account_action.rb @@ -108,13 +108,13 @@ class Admin::AccountAction def handle_force_sensitive! authorize(target_account, :force_sensitive?) - log_action(:force_sensitive, target_account.user) + log_action(:force_sensitive, target_account) target_account.force_sensitive! end def handle_force_unlisted! authorize(target_account, :force_unlisted?) - log_action(:force_unlisted, target_account.user) + log_action(:force_unlisted, target_account) target_account.force_unlisted! end @@ -133,7 +133,7 @@ class Admin::AccountAction def handle_mark_unknown! authorize(target_account, :mark_unknown?) - log_action(:mark_unknown, target_account.user) + log_action(:mark_unknown, target_account) target_account.mark_unknown! end -- cgit