Fix regression when suspending not from report (#8400)

Regression from #8353
master
Eugen Rochko 6 years ago committed by GitHub
parent 7786e1357b
commit 9d58daac6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/admin/suspensions_controller.rb

@ -14,7 +14,7 @@ module Admin
@suspension = Form::AdminSuspensionConfirmation.new(suspension_params)
if suspension_params[:acct] == @account.acct
resolve_report! if suspension_params[:report_id]
resolve_report! if suspension_params[:report_id].present?
perform_suspend!
mark_reports_resolved!
redirect_to admin_accounts_path

Loading…
Cancel
Save