Skip to content

Commit 2281b04

Browse files
CirnoTlunnytechknowlogick
authored
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>
1 parent 9ad0424 commit 2281b04

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routers/api/v1/repo/issue.go

-3
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,6 @@ func ListIssues(ctx *context.APIContext) {
290290
}
291291

292292
listOptions := utils.GetListOptions(ctx)
293-
if ctx.QueryInt("limit") == 0 {
294-
listOptions.PageSize = setting.UI.IssuePagingNum
295-
}
296293

297294
var isPull util.OptionalBool
298295
switch ctx.Query("type") {

0 commit comments

Comments
 (0)