aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/user/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/user/user.go')
-rw-r--r--routers/api/v1/user/user.go3
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 {