From ac4255c9e536fd52f510bc3d6b5a9a63e9b93d6d Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 23 May 2025 13:42:55 +0200 Subject: [PATCH] [Glitch] fix: Allow quotes to be filtered Port 68a5724b3e4cb4e835900f522883923db25d6bb2 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/components/status_quoted.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status_quoted.tsx b/app/javascript/flavours/glitch/components/status_quoted.tsx index 6586fdf837..892c23d6e6 100644 --- a/app/javascript/flavours/glitch/components/status_quoted.tsx +++ b/app/javascript/flavours/glitch/components/status_quoted.tsx @@ -67,15 +67,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') { @@ -130,10 +130,16 @@ export const QuotedStatus: React.FC<{ return ( {/* @ts-expect-error Status is not yet typed */} - + {canRenderChildQuote && ( { return ( /* @ts-expect-error Status is not yet typed */ - + ); }