Disabled gravatar = image with empty url

I’ve noticed a bug when disabling the use of Gravatar in the configuration. Even when Gravatar usage is deactivated, an image tag is still being inserted into the comments, albeit without a URL but with the ‘alt=“Avatar”’ attribute. As a result, it appears broken in the layout.

Bildschirmfoto 2024-06-06 um 17.45.47

Workaround if you are affected. You just need to upload a transparent png to your theme folder and then modify the config:

“gravatar”: {
“url”: “https://xyoururl.com/assets/images/transparent.png
},
“privacy”: {
“useGravatar”: true,
}

1 Like