about summary refs log tree commit diff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-23 21:51:56 +0200
committerGitHub <noreply@github.com>2018-08-23 21:51:56 +0200
commit9d58daac6c860b599f8c266b8bb10c6170220dd3 (patch)
tree304706dcf446a385d2f756ce835f6cdb5857d612 /app/controllers/admin
parent7786e1357bbe456243679c91f88679cdd260fa8f (diff)
Fix regression when suspending not from report (#8400)
Regression from #8353
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/suspensions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/suspensions_controller.rb b/app/controllers/admin/suspensions_controller.rb
index 0c7bdad9e..f9bbf36fb 100644
--- a/app/controllers/admin/suspensions_controller.rb
+++ b/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