From 3e6831d7d6736f296d2e7af4c4fd1fbc3282b381 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 3 Aug 2019 15:07:19 -0500 Subject: include note for admin account actions in audit log --- app/helpers/moderation_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/helpers/moderation_helper.rb') diff --git a/app/helpers/moderation_helper.rb b/app/helpers/moderation_helper.rb index 2c45b4b84..10fa05109 100644 --- a/app/helpers/moderation_helper.rb +++ b/app/helpers/moderation_helper.rb @@ -17,10 +17,10 @@ module ModerationHelper if policy == 'reset' Admin::ActionLog.create(account: @account, action: unsuspend, target: acct) - user_friendly_action_log(@account, :unsuspend, acct) + user_friendly_action_log(@account, :unsuspend, acct, reason) else Admin::ActionLog.create(account: @account, action: policy, target: acct) - user_friendly_action_log(@account, policy.to_sym, acct) + user_friendly_action_log(@account, policy.to_sym, acct, reason) end case policy -- cgit