Skip to content

Commit 150c2e9

Browse files
committed
Fix bug when displaying git user avatar in commits list
1 parent 4e10adc commit 150c2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/commits_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<td class="author">
1717
<div class="tw-flex">
1818
{{$userName := .Author.Name}}
19-
{{if .User}}
19+
{{if and .User (neq .User.ID 0)}} /* User with id == 0 is a fake user from git author */
2020
{{if and .User.FullName DefaultShowFullName}}
2121
{{$userName = .User.FullName}}
2222
{{end}}

0 commit comments

Comments
 (0)