diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index c5013bf9c..295e83f58 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -459,136 +459,6 @@ class Status extends ImmutablePureComponent { const visibilityIcon = visibilityIconInfo[status.get('visibility')]; - let quote = null; - if (status.get('quote', null) !== null && typeof status.get('quote') === 'object') { - let quote_status = status.get('quote'); - - let quote_media = null; - if (quote_status.get('media_attachments').size > 0) { - if (pictureInPicture.get('inUse')) { - quote_media = ; - } else if (this.props.muted) { - quote_media = ( - - ); - } else if (quote_status.getIn(['media_attachments', 0, 'type']) === 'audio') { - const attachment = quote_status.getIn(['media_attachments', 0]); - - quote_media = ( - - {Component => ( - - )} - - ); - } else if (quote_status.getIn(['media_attachments', 0, 'type']) === 'video') { - const attachment = quote_status.getIn(['media_attachments', 0]); - - quote_media = ( - - {Component => ( - - )} - - ); - } else { - quote_media = ( - - {Component => ( - - )} - - ); - } - } - - if (quote_muted) { - quote = ( -
-
- -
-
- ); - } else if (quote_status.get('visibility') === 'unlisted' && !!contextType && ['public', 'community', 'hashtag'].includes(contextType.split(':', 2)[0])) { - quote = ( -
-
- -
-
- ); - } else { - quote = ( -
-
- -
- -
-
- - {quote_media} -
- ); - } - } else if (quote_muted) { - quote = ( -
-
- -
-
- ); - } - - const expires_at = status.get('expires_at') - const expires_date = expires_at && new Date(expires_at) - const expired = expires_date && expires_date.getTime() < intl.now() - return (
diff --git a/app/javascript/mastodon/features/status/components/detailed_status.js b/app/javascript/mastodon/features/status/components/detailed_status.js index d97190698..043a749ed 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.js +++ b/app/javascript/mastodon/features/status/components/detailed_status.js @@ -54,15 +54,8 @@ class DetailedStatus extends ImmutablePureComponent { handleAccountClick = (e) => { if (e.button === 0 && !(e.ctrlKey || e.metaKey) && this.context.router) { - const id = e.currentTarget.getAttribute('data-id'); - const group = e.currentTarget.getAttribute('data-group') !== 'false'; - e.preventDefault(); - if (group) { - this.context.router.history.push(`/timelines/groups/${id}`); - } else { - this.context.router.history.push(`/accounts/${id}`); - } + this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`); } e.stopPropagation(); @@ -128,95 +121,6 @@ class DetailedStatus extends ImmutablePureComponent { outerStyle.height = `${this.state.height}px`; } - let quote = null; - if (status.get('quote', null) !== null) { - let quote_status = status.get('quote'); - - let quote_media = null; - if (quote_status.get('media_attachments').size > 0) { - - if (quote_status.getIn(['media_attachments', 0, 'type']) === 'audio') { - const attachment = quote_status.getIn(['media_attachments', 0]); - - quote_media = ( -