From 68a5724b3e4cb4e835900f522883923db25d6bb2 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 23 May 2025 13:42:55 +0200 Subject: [PATCH] fix: Allow quotes to be filtered (#34786) --- .../mastodon/components/status_quoted.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/components/status_quoted.tsx b/app/javascript/mastodon/components/status_quoted.tsx index cbb4e2f162..5b840b441c 100644 --- a/app/javascript/mastodon/components/status_quoted.tsx +++ b/app/javascript/mastodon/components/status_quoted.tsx @@ -68,15 +68,15 @@ type QuoteMap = ImmutableMap<'state' | 'quoted_status', string | null>; export const QuotedStatus: React.FC<{ quote: QuoteMap; + contextType?: string; variant?: 'full' | 'link'; nestingLevel?: number; -}> = ({ quote, nestingLevel = 1, variant = 'full' }) => { +}> = ({ quote, contextType, nestingLevel = 1, variant = 'full' }) => { const quotedStatusId = quote.get('quoted_status'); const state = quote.get('state'); const status = useAppSelector((state) => quotedStatusId ? state.statuses.get(quotedStatusId) : undefined, ); - let quoteError: React.ReactNode = null; if (state === 'deleted') { @@ -131,10 +131,16 @@ export const QuotedStatus: React.FC<{ return ( {/* @ts-expect-error Status is not yet typed */} - + {canRenderChildQuote && ( { if (quote) { return ( - + ); }