mirror of https://github.com/go-gitea/gitea.git
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.pull/34990/head^2
parent
d3d357a4a4
commit
f1b78f3cdd
|
|
@ -16,7 +16,7 @@
|
||||||
<td class="author">
|
<td class="author">
|
||||||
<div class="tw-flex">
|
<div class="tw-flex">
|
||||||
{{$userName := .Author.Name}}
|
{{$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}}
|
{{if and .User.FullName DefaultShowFullName}}
|
||||||
{{$userName = .User.FullName}}
|
{{$userName = .User.FullName}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue