diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-04-12 07:29:41 +0800 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-11 19:29:41 -0400 |
commit | 1b7dffc3a30b2244aa2690abce19dd4c31613016 (patch) | |
tree | d279d7fa4feb01d4166e85cf4cc7b2ee53192202 /routers/api | |
parent | 2f53b5f88c15d031427695c50bda1f6fa50920cb (diff) | |
download | gitea-1b7dffc3a30b2244aa2690abce19dd4c31613016.tar.gz gitea-1b7dffc3a30b2244aa2690abce19dd4c31613016.zip |
fix bug user search API pagesize didn't obey ExplorePagingNum (#6579)
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/user/user.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index a44eb03c39..0f10c4e814 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -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 { |