Browse Source

fix-674

tags/v1.21.12.1
ychao_1983 3 years ago
parent
commit
f6f2000359
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