Display names some more

This commit is contained in:
Matthew Knight 2026-02-14 02:23:27 -08:00
parent fee62fed53
commit a932407748
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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