0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-28 22:58:03 +01:00

fix bug user search API pagesize didn't obey ExplorePagingNum (#6579)

This commit is contained in:
Lunny Xiao 2019-04-12 07:29:41 +08:00 committed by techknowlogick
parent 2f53b5f88c
commit 1b7dffc3a3

View file

@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) {
Type: models.UserTypeIndividual,
PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
}
if opts.PageSize <= 0 {
opts.PageSize = 10
}
users, _, err := models.SearchUsers(opts)
if err != nil {