diff --git a/modules/templates/util_avatar.go b/modules/templates/util_avatar.go index 462668588a..85832cf264 100644 --- a/modules/templates/util_avatar.go +++ b/modules/templates/util_avatar.go @@ -59,7 +59,7 @@ func (au *AvatarUtils) Avatar(item any, others ...any) template.HTML { } } - return "" + return AvatarHTML(avatars.DefaultAvatarLink(), size, class, "") } // AvatarByAction renders user avatars from action. args: action, size (int), class (string) diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 1e9af5c4a1..2fbfe2fd6a 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -3,7 +3,7 @@ {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}}
{{if .OriginalAuthor}} - + {{ctx.AvatarUtils.Avatar nil}} {{else}} {{template "shared/user/avatarlink" dict "user" .Poster}} {{end}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 9967997b92..ed444f6dce 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -12,7 +12,7 @@
{{if .Issue.OriginalAuthor}} - + {{ctx.AvatarUtils.Avatar nil 40}} {{else}} diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index ad7b836e9c..ade0ea34cf 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -17,7 +17,7 @@