From 2086154de1e4b895097e8f995f85d69089604269 Mon Sep 17 00:00:00 2001 From: Tom Coupland Date: Mon, 30 Mar 2020 12:00:02 +0100 Subject: [PATCH] Increase maximum page size to 500 One hundred is a sensible limit, but five hundred gives us a lot more head room. The entities are only small after all. --- api/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server/server.go b/api/server/server.go index 58f63a3905..9109a069e9 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -1052,8 +1052,8 @@ func pageParams(c *gin.Context) (cursor string, perPage int) { cursor = c.Query("cursor") perPage, _ = strconv.Atoi(c.Query("per_page")) - if perPage > 100 { - perPage = 100 + if perPage > 500 { + perPage = 500 } else if perPage <= 0 { perPage = 30 }