mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Refactor topic Find functions and add more tests for pagination (#30127)
This also fixed #22238
This commit is contained in:
@@ -23,7 +23,7 @@ func TopicSearch(ctx *context.Context) {
|
||||
},
|
||||
}
|
||||
|
||||
topics, total, err := repo_model.FindTopics(ctx, opts)
|
||||
topics, total, err := db.FindAndCount[repo_model.Topic](ctx, opts)
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError)
|
||||
return
|
||||
|
Reference in New Issue
Block a user