diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-27 23:09:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 17:09:24 -0400 |
commit | 2281b048af8837a33adfc9acfd3872022c789026 (patch) | |
tree | 68e56c1a85f7a0c6be090be4a8dd963605eacced /routers/api/v1/repo/issue.go | |
parent | 9ad04240a658bf6f32d8ee94db5d08a112b12550 (diff) | |
download | gitea-2281b048af8837a33adfc9acfd3872022c789026.tar.gz gitea-2281b048af8837a33adfc9acfd3872022c789026.zip |
Do not override API issue pagination with UI settings (#12068)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/api/v1/repo/issue.go')
-rw-r--r-- | routers/api/v1/repo/issue.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index a064482498..d7bd3cd356 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -290,9 +290,6 @@ func ListIssues(ctx *context.APIContext) { } listOptions := utils.GetListOptions(ctx) - if ctx.QueryInt("limit") == 0 { - listOptions.PageSize = setting.UI.IssuePagingNum - } var isPull util.OptionalBool switch ctx.Query("type") { |