mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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
|
||||
|
||||
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]
|
||||
|
||||
plug PhilomenaWeb.FilterBannedUsersPlug when action in [:create, :edit, :update]
|
||||
|
|
|
@ -20,7 +20,7 @@ defmodule PhilomenaWeb.ImageController do
|
|||
import Ecto.Query
|
||||
|
||||
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]
|
||||
|
||||
plug :load_image when action in [:show]
|
||||
|
|
|
@ -6,7 +6,7 @@ defmodule PhilomenaWeb.Topic.PostController do
|
|||
alias Philomena.UserStatistics
|
||||
|
||||
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]
|
||||
|
||||
plug PhilomenaWeb.FilterBannedUsersPlug
|
||||
|
|
Loading…
Reference in a new issue