diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-30 17:10:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 17:10:13 +0200 |
commit | 2f6416db53fd987b702969afa0de69a06caf0d27 (patch) | |
tree | 3aba73daba40457e69a7c1b2fc51f05d61278ffc | |
parent | 3238f570db500f179c4405f0c307f3d451ca562e (diff) |
Remove unnused otherAccounts property (#18556)
Leftover from before #11896
-rw-r--r-- | app/javascript/mastodon/components/status.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 766093226..7c44669d2 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -3,7 +3,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; -import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent from './status_content'; @@ -70,7 +69,6 @@ class Status extends ImmutablePureComponent { static propTypes = { status: ImmutablePropTypes.map, account: ImmutablePropTypes.map, - otherAccounts: ImmutablePropTypes.list, onClick: PropTypes.func, onReply: PropTypes.func, onFavourite: PropTypes.func, @@ -297,7 +295,7 @@ class Status extends ImmutablePureComponent { let media = null; let statusAvatar, prepend, rebloggedByText; - const { intl, hidden, featured, otherAccounts, unread, showThread, scrollKey, pictureInPicture } = this.props; + const { intl, hidden, featured, unread, showThread, scrollKey, pictureInPicture } = this.props; let { status, account, ...other } = this.props; @@ -456,9 +454,7 @@ class Status extends ImmutablePureComponent { ); } - if (otherAccounts && otherAccounts.size > 0) { - statusAvatar = <AvatarComposite accounts={otherAccounts} size={48} />; - } else if (account === undefined || account === null) { + if (account === undefined || account === null) { statusAvatar = <Avatar account={status.get('account')} size={48} />; } else { statusAvatar = <AvatarOverlay account={status.get('account')} friend={account} />; @@ -492,7 +488,7 @@ class Status extends ImmutablePureComponent { {statusAvatar} </div> - <DisplayName account={status.get('account')} others={otherAccounts} /> + <DisplayName account={status.get('account')} /> </a> </div> |