From e904d92b984dcb87d8de75a1f7c18e6759f1014e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 Jan 2018 10:54:27 -0500 Subject: [PATCH] FIX: Suspension / Silence reasons were incorrect on save --- app/controllers/admin/users_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 457b049d0d8..4dba568eb55 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -86,6 +86,7 @@ class Admin::UsersController < Admin::AdminController suspension: { suspended: true, suspend_reason: params[:reason], + full_suspend_reason: user_history.try(:details), suspended_till: @user.suspended_till, suspended_at: @user.suspended_at } @@ -289,7 +290,7 @@ class Admin::UsersController < Admin::AdminController render_json_dump( silence: { silenced: true, - silence_reason: params[:reason], + silence_reason: silencer.user_history.try(:details), silenced_till: @user.silenced_till, suspended_at: @user.silenced_at }