diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx index 63acf54a5..a7cf887f4 100644 --- a/app/javascript/mastodon/components/status.jsx +++ b/app/javascript/mastodon/components/status.jsx @@ -275,6 +275,15 @@ class Status extends ImmutablePureComponent { this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'quote', 'id'], status.getIn(['quote', 'id']))}`); } + handleQuoteUserClick = () =>{ + if (!this.context.router) { + return; + } + + const { status } = this.props; + this.location.href(`/@${status.getIn(['account', 'acct'])}`); + } + handleExpandedToggle = () => { this.props.onToggleHidden(this._properStatus()); }; @@ -644,8 +653,8 @@ class Status extends ImmutablePureComponent { } }; - const identity = (status, account) => ( - + const identity = (status, account, _0, quote = false) => ( +
{statusAvatar(status, account)}
diff --git a/app/javascript/mastodon/features/status/components/detailed_status.jsx b/app/javascript/mastodon/features/status/components/detailed_status.jsx index f86c3c680..cf2f37594 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.jsx +++ b/app/javascript/mastodon/features/status/components/detailed_status.jsx @@ -93,6 +93,15 @@ class DetailedStatus extends ImmutablePureComponent { const { status } = this.props; this.context.router.history.push(`/statuses/${status.getIn(['quote', 'id'])}`); } + + handleQuoteUserClick = () =>{ + if (!this.context.router) { + return; + } + + const { status } = this.props; + this.location.href(`/@${status.getIn(['account', 'acct'])}`); + } _measureHeight (heightJustChanged) { if (this.props.measureHeight && this.node) { @@ -176,7 +185,7 @@ class DetailedStatus extends ImmutablePureComponent { const language = status.getIn(['translation', 'language']) || status.get('language'); const identity = (status, _0, _1, quote = false) => ( -
+