diff options
author | Unknwon <u@gogs.io> | 2016-07-04 17:27:06 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-04 17:27:06 +0800 |
commit | 4b25bdfbc45479d64e3ffb04abbd08672ccc47fb (patch) | |
tree | bbede594875a146bf4c34ce2760202cffe6aeb33 /models | |
parent | 528682a294834611a95b2cf6c80efdccdf6fd791 (diff) | |
download | gitea-4b25bdfbc45479d64e3ffb04abbd08672ccc47fb.tar.gz gitea-4b25bdfbc45479d64e3ffb04abbd08672ccc47fb.zip |
#3058 #3059 support correct page size and link header
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/models/repo.go b/models/repo.go index 5d6b66d046..786fc167bc 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1521,9 +1521,6 @@ func SearchRepositoryByName(opts *SearchRepoOptions) (repos []*Repository, _ int } opts.Keyword = strings.ToLower(opts.Keyword) - if opts.PageSize <= 0 || opts.PageSize > setting.ExplorePagingNum { - opts.PageSize = setting.ExplorePagingNum - } if opts.Page <= 0 { opts.Page = 1 } |