mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-09 04:22:42 -05:00
Fix crash when rendering remote post with collection card (#38959)
This commit is contained in:
parent
b71333921b
commit
658ad9f57e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ export const DetailedStatus: React.FC<{
|
|||
);
|
||||
|
||||
if (taggedCollection) {
|
||||
media = <CollectionPreviewCard collection={taggedCollection} />;
|
||||
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
|
||||
} else {
|
||||
media = (
|
||||
<Card
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user