mirror of
https://github.com/flarum/core.git
synced 2025-07-27 19:50:20 +02:00
@@ -25,7 +25,7 @@ export default function avatar(user, attrs = {}) {
|
|||||||
if (hasTitle) attrs.title = attrs.title || username;
|
if (hasTitle) attrs.title = attrs.title || username;
|
||||||
|
|
||||||
if (avatarUrl) {
|
if (avatarUrl) {
|
||||||
return <img {...attrs} src={avatarUrl} />;
|
return <img {...attrs} src={avatarUrl} alt="" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
content = username.charAt(0).toUpperCase();
|
content = username.charAt(0).toUpperCase();
|
||||||
|
Reference in New Issue
Block a user