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