fix: redirect @null

This commit is contained in:
YoheiZuho 2023-07-14 17:15:15 +00:00
parent d7a445b735
commit c76f043f25

View File

@ -66,9 +66,8 @@ class DetailedStatus extends ImmutablePureComponent {
handleAccountClick = (e) => {
if (e.button === 0 && !(e.ctrlKey || e.metaKey) && this.context.router) {
const acct = e.currentTarget.getAttribute('data-acct');
e.preventDefault();
this.context.router.history.push(`/@${acct}`);
this.context.router.history.push(`/@${this.props.status.getIn(['account', 'acct'])}`);
}
e.stopPropagation();