Fix silence and unsilenced response bodies
Both response bodies had a typo that included suspended_at, so I renamed it to silenced_at.
This commit is contained in:
parent
06323f9c89
commit
37b726982d
|
@ -350,7 +350,7 @@ class Admin::UsersController < Admin::AdminController
|
||||||
silenced: true,
|
silenced: true,
|
||||||
silence_reason: silencer.user_history.try(:details),
|
silence_reason: silencer.user_history.try(:details),
|
||||||
silenced_till: @user.silenced_till,
|
silenced_till: @user.silenced_till,
|
||||||
suspended_at: @user.silenced_at,
|
silenced_at: @user.silenced_at,
|
||||||
silenced_by: BasicUserSerializer.new(current_user, root: false).as_json
|
silenced_by: BasicUserSerializer.new(current_user, root: false).as_json
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -365,7 +365,7 @@ class Admin::UsersController < Admin::AdminController
|
||||||
silenced: false,
|
silenced: false,
|
||||||
silence_reason: nil,
|
silence_reason: nil,
|
||||||
silenced_till: nil,
|
silenced_till: nil,
|
||||||
suspended_at: nil
|
silenced_at: nil
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue