From 150c2e996d5091c357718af57b7fbde792a45674 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 8 Jul 2025 12:00:37 -0700 Subject: [PATCH 1/2] Fix bug when displaying git user avatar in commits list --- templates/repo/commits_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 959f2a9398575..f6622f0488ec5 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -16,7 +16,7 @@
{{$userName := .Author.Name}} - {{if .User}} + {{if and .User (neq .User.ID 0)}} /* User with id == 0 is a fake user from git author */ {{if and .User.FullName DefaultShowFullName}} {{$userName = .User.FullName}} {{end}} From de4bb2bbc2a34e3bf56d6ccadfa579ec5980d734 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 8 Jul 2025 12:08:16 -0700 Subject: [PATCH 2/2] ghost user and action user will also not display link --- templates/repo/commits_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index f6622f0488ec5..9dae6594b9d12 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -16,7 +16,7 @@
{{$userName := .Author.Name}} - {{if and .User (neq .User.ID 0)}} /* User with id == 0 is a fake user from git author */ + {{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}}