diff options
author | Norwin <noerw@users.noreply.github.com> | 2022-08-02 16:59:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 22:59:44 +0800 |
commit | 2754ecc293ffa8c9b44f2bd60dc83d295fc037ba (patch) | |
tree | 9255fbda1852fd753ed72aa934af823b5f5a27a3 /routers/api | |
parent | 631539c104c790fccf31a80a92e31fcc8a16521c (diff) | |
download | gitea-2754ecc293ffa8c9b44f2bd60dc83d295fc037ba.tar.gz gitea-2754ecc293ffa8c9b44f2bd60dc83d295fc037ba.zip |
Use correct page size for link header pagination (#20546)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index ddad18ef62..08e3e03741 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -282,7 +282,7 @@ func SearchIssues(ctx *context.APIContext) { } } - ctx.SetLinkHeader(int(filteredCount), setting.UI.IssuePagingNum) + ctx.SetLinkHeader(int(filteredCount), limit) ctx.SetTotalCountHeader(filteredCount) ctx.JSON(http.StatusOK, convert.ToAPIIssueList(issues)) } |