Fix regression when suspending not from report (#8400)

Regression from #8353
lolsob-rspec
Eugen Rochko 2018-08-23 21:51:56 +02:00 committed by GitHub
parent e4f3f34fb6
commit 335b1520bb
1 changed files with 1 additions and 1 deletions

View File

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