Fix quotes not being displayed in reblogs (#34773)
This commit is contained in:
parent
ef1bf8e9f2
commit
e0ce4b9b6b
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue