1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00

Added an empty alt attribute to avatar's img tag (#2269)

fixes #2256
This commit is contained in:
Karan Sanjeev
2020-08-25 20:23:44 +05:30
committed by GitHub
parent f6f92f9713
commit 933b25ee8e

View File

@@ -25,7 +25,7 @@ export default function avatar(user, attrs = {}) {
if (hasTitle) attrs.title = attrs.title || username;
if (avatarUrl) {
return <img {...attrs} src={avatarUrl} />;
return <img {...attrs} src={avatarUrl} alt="" />;
}
content = username.charAt(0).toUpperCase();