mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix regression when suspending not from report (#8400)
Regression from #8353
This commit is contained in:
parent
7786e1357b
commit
9d58daac6c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue