Skip to content
Snippets Groups Projects
Unverified Commit 9d58daac authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix regression when suspending not from report (#8400)

Regression from #8353
parent 7786e135
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment