Skip to content

Commit

Permalink
fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) (
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and techknowlogick committed Apr 12, 2019
1 parent 95e12be commit 5be1b7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions routers/api/v1/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5be1b7d

Please sign in to comment.