Skip to content

Commit 19b5168

Browse files
authored
Merge pull request #620 from poppastring/fix-gravatar-images
Set alt tag to some value to avoid html errors.
2 parents 199ff10 + 08d61cb commit 19b5168

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/DasBlog.Web.UI/TagHelpers/Comments/CommentGravatarImageTagHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
3030
dasBlogSettings.SiteConfiguration.CommentsGravatarRating, dasBlogSettings.SiteConfiguration.CommentsGravatarSize,
3131
dasBlogSettings.SiteConfiguration.CommentsGravatarNoImgPath));
3232

33+
output.Attributes.SetAttribute("alt", "gravatar");
34+
3335
var style = "dbc-comment-gravatar";
3436

3537
if (!string.IsNullOrEmpty(Css))

0 commit comments

Comments
 (0)