diff --git a/modules/templates/util_avatar.go b/modules/templates/util_avatar.go index 462668588..85832cf26 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 1e9af5c4a..2fbfe2fd6 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -3,7 +3,7 @@ {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}}