Browse Source

Merge pull request 'fix-674' (#717) from fix-674 into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/717
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.1
lewis 4 years ago
parent
commit
6c752fa0f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/home.go

+ 1
- 1
routers/home.go View File

@@ -146,7 +146,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
ctx.Data["SortType"] = "hot"
orderBy = models.SearchOrderByHot
}
orderBy = orderBy + ",id"
//todo:support other topics
keyword := strings.Trim(ctx.Query("q"), " ")
topic := strings.Trim(ctx.Query("topic"), " ")


Loading…
Cancel
Save