[Glitch] Fix crash when rendering remote post with collection card

Port 658ad9f57e46b37a2eef033578ddfb05d2ccb3ab to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion 2026-05-08 11:22:28 +02:00 committed by Claire
parent 0da13f7632
commit baceb78193
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ class Status extends ImmutablePureComponent {
status.get('tagged_collections')
).find((item) => compareUrls(item.get('url'), cardUrl));
if (taggedCollection) {
media.push(<CollectionPreviewCard collection={taggedCollection} />);
media.push(<CollectionPreviewCard collection={taggedCollection.toJS()} />);
} else {
media.push(
<Card

View File

@ -304,7 +304,7 @@ export const DetailedStatus: React.FC<{
);
if (taggedCollection) {
media = <CollectionPreviewCard collection={taggedCollection} />;
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
} else {
media = (
<Card