diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-28 00:48:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 00:48:45 +0200 |
commit | 8dfe5179ee7186e549dbe1186a151ffa848fe8ab (patch) | |
tree | 9b2ec70b5330372ea02e8d14e5f9dc3f402ea2d9 /app/javascript/mastodon/components/avatar_composite.js | |
parent | 07cc201accd4a04c8c11cda21eecded4e7875d55 (diff) |
Fix avatars not using image tags in web UI (#19488)
Fix #19483
Diffstat (limited to 'app/javascript/mastodon/components/avatar_composite.js')
-rw-r--r-- | app/javascript/mastodon/components/avatar_composite.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/javascript/mastodon/components/avatar_composite.js b/app/javascript/mastodon/components/avatar_composite.js index 5d5b89749..220bf5b4f 100644 --- a/app/javascript/mastodon/components/avatar_composite.js +++ b/app/javascript/mastodon/components/avatar_composite.js @@ -2,6 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; +import Avatar from './avatar'; export default class AvatarComposite extends React.PureComponent { @@ -74,12 +75,12 @@ export default class AvatarComposite extends React.PureComponent { bottom: bottom, width: `${width}%`, height: `${height}%`, - backgroundSize: 'cover', - backgroundImage: `url(${account.get(animate ? 'avatar' : 'avatar_static')})`, }; return ( - <div key={account.get('id')} style={style} /> + <div key={account.get('id')} style={style}> + <Avatar account={account} animate={animate} /> + </div> ); } |