Display names some more
This commit is contained in:
parent
fee62fed53
commit
a932407748
|
|
@ -76,7 +76,8 @@ func (u APIUser) DisplayName() string {
|
|||
if u.FullName != "" {
|
||||
return u.FullName
|
||||
}
|
||||
if u.Email != "" {
|
||||
// Ignore Forgejo's privacy placeholder emails
|
||||
if u.Email != "" && !strings.HasSuffix(u.Email, "@noreply.localhost") {
|
||||
return u.Email
|
||||
}
|
||||
return u.Login
|
||||
|
|
|
|||
Loading…
Reference in New Issue