Fix clicking on avatar/display opening status instead of profile (#2897)

Fix regression from #2895
This commit is contained in:
Claire
2024-11-11 16:11:24 +01:00
parent 96ffbc05c0
commit a62be22cb1
2 changed files with 25 additions and 27 deletions

View File

@@ -18,15 +18,10 @@ export default class StatusHeader extends PureComponent {
parseClick: PropTypes.func.isRequired,
};
// Handles clicks on account name/image
handleClick = (acct, e) => {
const { parseClick } = this.props;
parseClick(e, `/@${acct}`);
};
handleAccountClick = (e) => {
const { status } = this.props;
this.handleClick(status.getIn(['account', 'acct']), e);
const { status, parseClick } = this.props;
parseClick(e, `/@${status.getIn(['account', 'acct'])}`);
e.stopPropagation();
};
// Rendering.