mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 05:53:37 +08:00
parent
47f3ee0ce2
commit
97186e6086
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user