diff --git a/app/javascript/mastodon/components/status_quoted.tsx b/app/javascript/mastodon/components/status_quoted.tsx index f0bbe8e7f..93a5ad869 100644 --- a/app/javascript/mastodon/components/status_quoted.tsx +++ b/app/javascript/mastodon/components/status_quoted.tsx @@ -21,8 +21,10 @@ const MAX_QUOTE_POSTS_NESTING_LEVEL = 1; const QuoteWrapper: React.FC<{ isError?: boolean; + contextType?: string; + onQuoteCancel?: () => void; children: React.ReactElement; -}> = ({ isError, children }) => { +}> = ({ isError, contextType, onQuoteCancel, children }) => { return (
{children} + {contextType === 'composer' && ( + + )}
); }; @@ -146,49 +153,47 @@ export const QuotedStatus: React.FC = ({ /> -
- -

); + } else if (quoteState === 'revoked') { + quoteError = ( + + ); } else if ( !status || !quotedStatusId || quoteState === 'deleted' || quoteState === 'rejected' || - quoteState === 'revoked' || quoteState === 'unauthorized' ) { quoteError = ( - <> - - {contextType === 'composer' && ( - - )} - + ); } if (quoteError) { - return {quoteError}; + return ( + + {quoteError} + + ); } if (variant === 'link' && status) { diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index c296c4f53..ec67ba1d5 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -905,8 +905,8 @@ "status.quote_error.filtered": "Hidden due to one of your filters", "status.quote_error.not_available": "Post unavailable", "status.quote_error.pending_approval": "Post pending", - "status.quote_error.pending_approval_popout.body": "Quotes shared across the Fediverse may take time to display, as different servers have different protocols.", - "status.quote_error.pending_approval_popout.title": "Pending quote? Remain calm", + "status.quote_error.pending_approval_popout.body": "On Mastodon, you can control whether someone can quote you. This post is pending while we're getting the original author's approval.", + "status.quote_error.revoked": "Post removed by author", "status.quote_followers_only": "Only followers can quote this post", "status.quote_manual_review": "Author will manually review", "status.quote_policy_change": "Change who can quote",