[Glitch] Fix quotes not being displayed in reblogs

Port e0ce4b9b6bc29dac1d3687f5870b06eca9ceeeda to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2025-05-22 17:23:45 +02:00
parent 5061a32f1d
commit cac981662e

View File

@ -157,7 +157,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) {