Browse Source

Merge pull request '修复由组织创建的项目,贡献者列表信息显示问题' (#311) from fix228-xu into V202108

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

+ 3
- 0
routers/repo/view.go View File

@@ -590,6 +590,9 @@ func Home(ctx *context.Context) {
if err == nil && contributors != nil { if err == nil && contributors != nil {
var contributorInfos []*ContributorInfo var contributorInfos []*ContributorInfo
for _, c := range contributors { for _, c := range contributors {
if strings.Compare(c.Email,"") == 0 {
continue
}
// get user info from committer email // get user info from committer email
user, err := models.GetUserByEmail(c.Email) user, err := models.GetUserByEmail(c.Email)
if err == nil { if err == nil {


Loading…
Cancel
Save