about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-11-12 18:17:50 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-11-12 18:17:50 +0100
commitbbd8fdd185063d8b2464b20ee95c366718b75fc6 (patch)
tree8c638e37d04da8c0bcc35bbbe2072d818340ae88 /app
parentc81bdafb074f5ae5bbc27277e8e5141a7f95525f (diff)
Perform deep comparison for card data when receiving new props (#9270)
Fixes #9226
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/status/components/card.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/status/components/card.js b/app/javascript/mastodon/features/status/components/card.js
index 743fe779a..3474a11e5 100644
--- a/app/javascript/mastodon/features/status/components/card.js
+++ b/app/javascript/mastodon/features/status/components/card.js
@@ -73,7 +73,7 @@ export default class Card extends React.PureComponent {
   };
 
   componentWillReceiveProps (nextProps) {
-    if (this.props.card !== nextProps.card) {
+    if (!this.props.card.equals(nextProps.card)) {
       this.setState({ embedded: false });
     }
   }