Fix bug when displaying git user avatar in commits list (#35003)

A quick fix for #34991 

`ValidateCommitsWithEmails` will create a fake user for a git commit
user with a related Gitea user. The UI should not display a link for
such users.
This commit is contained in:
Lunny Xiao 2025-07-09 06:49:30 +08:00 committed by GitHub
parent d3d357a4a4
commit f1b78f3cdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@
<td class="author">
<div class="tw-flex">
{{$userName := .Author.Name}}
{{if .User}}
{{if and .User (gt .User.ID 0)}} /* User with id == 0 is a fake user from git author */
{{if and .User.FullName DefaultShowFullName}}
{{$userName = .User.FullName}}
{{end}}