]> cat aescling's git repositories - mastodon.git/commitdiff
Redirect to reports overview instead of report after account action (#9639)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Dec 2018 02:42:29 +0000 (03:42 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Dec 2018 02:42:29 +0000 (03:42 +0100)
app/controllers/admin/account_actions_controller.rb

index e847495f1b8c02bed17591672d58c7be9d7ba6a0..a2cea461ee1950e2c971e3455378380407221a50 100644 (file)
@@ -17,7 +17,7 @@ module Admin
       account_action.save!
 
       if account_action.with_report?
-        redirect_to admin_report_path(account_action.report)
+        redirect_to admin_reports_path
       else
         redirect_to admin_account_path(@account.id)
       end