From 5be1b7df3f942c45f82cc226fee99f6c5e953feb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 12 Apr 2019 09:45:35 +0800 Subject: [PATCH] fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) (#6586) --- routers/api/v1/user/user.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index cbc7bbc238..fe1a14c3b5 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 {