mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
* Honor DEFAULT_PAGING_NUM for API
* set pagination to 10 for tests
* lint
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
(cherry picked from commit cefbf73aea
)
This commit is contained in:
committed by
GitHub
parent
c52f81eecc
commit
d06f98d9a2
@@ -275,12 +275,6 @@ func TopicSearch(ctx *context.APIContext) {
|
||||
kw := ctx.Query("q")
|
||||
|
||||
listOptions := utils.GetListOptions(ctx)
|
||||
if listOptions.Page < 1 {
|
||||
listOptions.Page = 1
|
||||
}
|
||||
if listOptions.PageSize < 1 {
|
||||
listOptions.PageSize = 10
|
||||
}
|
||||
|
||||
topics, err := models.FindTopics(&models.FindTopicOptions{
|
||||
Keyword: kw,
|
||||
|
Reference in New Issue
Block a user