mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
change max open reports to 3
This commit is contained in:
parent
d0e0f3dc00
commit
a1f2ac5083
1 changed files with 2 additions and 2 deletions
|
@ -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: "/"
|
||||
|
|
Loading…
Reference in a new issue