mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: Suspension / Silence reasons were incorrect on save
This commit is contained in:
parent
ec4295fb1c
commit
e904d92b98
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user