Kaynağa Gözat

Fix gitea-action user avatar broken on edited menu (#29190) (#29307)

Backport #29190

Fix #29178
tags/v1.21.6
yp05327 3 ay önce
ebeveyn
işleme
f80ea95eb5
No account linked to committer's email address
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    1
      models/issues/content_history.go

+ 5
- 1
models/issues/content_history.go Dosyayı Görüntüle

@@ -161,7 +161,11 @@ func FetchIssueContentHistoryList(dbCtx context.Context, issueID, commentID int6
}

for _, item := range res {
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
if item.UserID > 0 {
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
} else {
item.UserAvatarLink = avatars.DefaultAvatarLink()
}
}
return res, nil
}

Loading…
İptal
Kaydet