about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-05 21:18:57 +0100
committerGitHub <noreply@github.com>2022-11-05 21:18:57 +0100
commitd1de7fb7fa561a76c30f3b1f60b82856443ed4b3 (patch)
tree812bc22fe6ad3e89f0cd26cc346e665e1a1af8d3
parenta442f481f850d857544eafdd0725142ed8656552 (diff)
Fix rendering empty avatar in web UI (#19798)
-rw-r--r--app/javascript/mastodon/components/avatar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/avatar.js b/app/javascript/mastodon/components/avatar.js
index 207b26691..e617c2889 100644
--- a/app/javascript/mastodon/components/avatar.js
+++ b/app/javascript/mastodon/components/avatar.js
@@ -54,7 +54,7 @@ export default class Avatar extends React.PureComponent {
 
     return (
       <div className={classNames('account__avatar', { 'account__avatar-inline': inline })} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} style={style}>
-        <img src={src} alt={account?.get('acct')} />
+        {src && <img src={src} alt={account?.get('acct')} />}
       </div>
     );
   }