Skip to content

Commit 5be1b7d

Browse files
lunnytechknowlogick
authored andcommitted
fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) (#6586)
1 parent 95e12be commit 5be1b7d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routers/api/v1/user/user.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) {
5555
Type: models.UserTypeIndividual,
5656
PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
5757
}
58-
if opts.PageSize <= 0 {
59-
opts.PageSize = 10
60-
}
6158

6259
users, _, err := models.SearchUsers(opts)
6360
if err != nil {

0 commit comments

Comments
 (0)