From e0ce4b9b6bc29dac1d3687f5870b06eca9ceeeda Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 22 May 2025 17:23:45 +0200 Subject: [PATCH] Fix quotes not being displayed in reblogs (#34773) --- app/javascript/mastodon/components/status_quoted.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/status_quoted.tsx b/app/javascript/mastodon/components/status_quoted.tsx index 2f1354c27a..cbb4e2f162 100644 --- a/app/javascript/mastodon/components/status_quoted.tsx +++ b/app/javascript/mastodon/components/status_quoted.tsx @@ -158,7 +158,11 @@ interface StatusQuoteManagerProps { */ export const StatusQuoteManager = (props: StatusQuoteManagerProps) => { - const status = useAppSelector((state) => state.statuses.get(props.id)); + const status = useAppSelector((state) => { + const status = state.statuses.get(props.id); + const reblogId = status?.get('reblog') as string | undefined; + return reblogId ? state.statuses.get(reblogId) : status; + }); const quote = status?.get('quote') as QuoteMap | undefined; if (quote) {