]> cat aescling's git repositories - mastodon.git/commitdiff
Fix crash on public hashtag pages when streaming fails (#10061)
authorThibG <thib@sitedethib.com>
Sat, 16 Feb 2019 13:53:27 +0000 (14:53 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 16 Feb 2019 13:53:27 +0000 (14:53 +0100)
app/javascript/mastodon/features/status/components/detailed_status.js

index 734353c9bd4066e41f99880a1234d1fa3b1e5bec..49bc43a7bae0f54cf1c8ecf7ea929194f9affe97 100644 (file)
@@ -87,7 +87,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
   }
 
   render () {
-    const status = this.props.status.get('reblog') ? this.props.status.get('reblog') : this.props.status;
+    const status = (this.props.status && this.props.status.get('reblog')) ? this.props.status.get('reblog') : this.props.status;
     const outerStyle = { boxSizing: 'border-box' };
     const { compact } = this.props;