Skip to content

Commit

Permalink
fix(thread-limit): add max of 100 for thread by board
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Jan 9, 2025
1 parent 9bfd61c commit 5330211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epochtalk_server_web/controllers/thread.ex
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ defmodule EpochtalkServerWeb.Controllers.Thread do
defp proxy_by_board(conn, attrs) do
with board_id <- Validate.cast(attrs, "board_id", :integer, required: true),
page <- Validate.cast(attrs, "page", :integer, default: 1),
limit <- Validate.cast(attrs, "limit", :integer, default: 5),
limit <- Validate.cast(attrs, "limit", :integer, default: 25, min: 1, max: 100),
user <- Guardian.Plug.current_resource(conn),
user_priority <- ACL.get_user_priority(conn),
:ok <- ACL.allow!(conn, "threads.byBoard"),
Expand Down

0 comments on commit 5330211

Please sign in to comment.