this.handleHotkeyOpen();
}
- handleAccountClick = e => {
+ handlePrependAccountClick = e => {
+ this.handleAccountClick(e, false);
+ }
+
+ handleAccountClick = (e, proper = true) => {
if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) {
return;
}
e.preventDefault();
}
- this.handleHotkeyOpenProfile();
+ this._openProfile(proper);
}
handleExpandedToggle = () => {
}
handleHotkeyOpenProfile = () => {
+ this._openProfile();
+ }
+
+ _openProfile = (proper = true) => {
const { router } = this.context;
- const status = this._properStatus();
+ const status = proper ? this._properStatus() : this.props.status;
if (!router) {
return;
prepend = (
<div className='status__prepend'>
<div className='status__prepend-icon-wrapper'><Icon id='retweet' className='status__prepend-icon' fixedWidth /></div>
- <FormattedMessage id='status.reblogged_by' defaultMessage='{name} boosted' values={{ name: <a onClick={this.handleAccountClick} data-id={status.getIn(['account', 'id'])} href={status.getIn(['account', 'url'])} className='status__display-name muted'><bdi><strong dangerouslySetInnerHTML={display_name_html} /></bdi></a> }} />
+ <FormattedMessage id='status.reblogged_by' defaultMessage='{name} boosted' values={{ name: <a onClick={this.handlePrependAccountClick} data-id={status.getIn(['account', 'id'])} href={status.getIn(['account', 'url'])} className='status__display-name muted'><bdi><strong dangerouslySetInnerHTML={display_name_html} /></bdi></a> }} />
</div>
);