From a1f2ac50834efa055ae0211ef0bf672c3b20a4b1 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 25 Jun 2020 11:12:05 -0400 Subject: [PATCH] change max open reports to 3 --- lib/philomena_web/controllers/report_controller.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/controllers/report_controller.ex b/lib/philomena_web/controllers/report_controller.ex index c460fd1d..49bf0002 100644 --- a/lib/philomena_web/controllers/report_controller.ex +++ b/lib/philomena_web/controllers/report_controller.ex @@ -80,7 +80,7 @@ defmodule PhilomenaWeb.ReportController do |> where([r], r.state in ["open", "in_progress"]) |> Repo.aggregate(:count, :id) - reports_open >= 5 + reports_open >= 3 end defp too_many_reports_ip?(conn) do @@ -92,7 +92,7 @@ defmodule PhilomenaWeb.ReportController do |> where([r], r.state in ["open", "in_progress"]) |> Repo.aggregate(:count, :id) - reports_open >= 5 + reports_open >= 3 end defp redirect_path(_conn, nil), do: "/"