FIX: Suspension / Silence reasons were incorrect on save

This commit is contained in:
Robin Ward 2018-01-11 10:54:27 -05:00
parent ec4295fb1c
commit e904d92b98
1 changed files with 2 additions and 1 deletions

View File

@ -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
}