mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
reduce certain rate limits by half
This commit is contained in:
parent
4184e94219
commit
73cb4f46cc
3 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ defmodule PhilomenaWeb.Image.CommentController do
|
||||||
alias Philomena.Images
|
alias Philomena.Images
|
||||||
|
|
||||||
plug PhilomenaWeb.LimitPlug,
|
plug PhilomenaWeb.LimitPlug,
|
||||||
[time: 30, error: "You may only create a comment once every 30 seconds."]
|
[time: 15, error: "You may only create a comment once every 15 seconds."]
|
||||||
when action in [:create]
|
when action in [:create]
|
||||||
|
|
||||||
plug PhilomenaWeb.FilterBannedUsersPlug when action in [:create, :edit, :update]
|
plug PhilomenaWeb.FilterBannedUsersPlug when action in [:create, :edit, :update]
|
||||||
|
|
|
@ -20,7 +20,7 @@ defmodule PhilomenaWeb.ImageController do
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
plug PhilomenaWeb.LimitPlug,
|
plug PhilomenaWeb.LimitPlug,
|
||||||
[time: 10, error: "You may only upload images once every 10 seconds."]
|
[time: 5, error: "You may only upload images once every 5 seconds."]
|
||||||
when action in [:create]
|
when action in [:create]
|
||||||
|
|
||||||
plug :load_image when action in [:show]
|
plug :load_image when action in [:show]
|
||||||
|
|
|
@ -6,7 +6,7 @@ defmodule PhilomenaWeb.Topic.PostController do
|
||||||
alias Philomena.UserStatistics
|
alias Philomena.UserStatistics
|
||||||
|
|
||||||
plug PhilomenaWeb.LimitPlug,
|
plug PhilomenaWeb.LimitPlug,
|
||||||
[time: 30, error: "You may only make a post once every 30 seconds."]
|
[time: 15, error: "You may only make a post once every 15 seconds."]
|
||||||
when action in [:create]
|
when action in [:create]
|
||||||
|
|
||||||
plug PhilomenaWeb.FilterBannedUsersPlug
|
plug PhilomenaWeb.FilterBannedUsersPlug
|
||||||
|
|
Loading…
Reference in a new issue