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

release/v1.8
Lunny Xiao 5 years ago committed by techknowlogick
parent 95e12be30f
commit 5be1b7df3f

@ -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 {

Loading…
Cancel
Save