Fix crash when rendering remote post with collection card (#38959)

This commit is contained in:
diondiondion 2026-05-08 11:22:28 +02:00 committed by GitHub
parent b71333921b
commit 658ad9f57e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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