mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-12 23:49:50 +00:00
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:
parent
d3d357a4a4
commit
f1b78f3cdd
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user