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

Port 658ad9f57e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion
2026-05-08 20:27:34 +02:00
committed by Claire
parent 0da13f7632
commit baceb78193
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -304,7 +304,7 @@ export const DetailedStatus: React.FC<{
);
if (taggedCollection) {
media = <CollectionPreviewCard collection={taggedCollection} />;
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
} else {
media = (
<Card