소스 검색

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

tags/v1.9.0-rc1
Lunny Xiao 5 년 전
부모
커밋
1b7dffc3a3
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0
    3
      routers/api/v1/user/user.go

+ 0
- 3
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 {

Loading…
취소
저장