Browse Source

修改统一搜索下的项目默认头像

tags/v1.22.6.2^2
zhoupzh 3 years ago
parent
commit
49e33ffcbd
2 changed files with 956 additions and 933 deletions
  1. +955
    -932
      public/home/search.js
  2. +1
    -1
      routers/search.go

+ 955
- 932
public/home/search.js
File diff suppressed because it is too large
View File


+ 1
- 1
routers/search.go View File

@@ -489,7 +489,7 @@ func makeRepoResult(sRes *elastic.SearchResult, Key string, OnlyReturnNum bool,
if recordSource["avatar"] != nil {
avatarstr := recordSource["avatar"].(string)
if len(avatarstr) == 0 {
record["avatar"] = setting.RepositoryAvatarFallbackImage
// record["avatar"] = setting.RepositoryAvatarFallbackImage
} else {
record["avatar"] = setting.AppSubURL + "/repo-avatars/" + avatarstr
}


Loading…
Cancel
Save