]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix crash on public hashtag pages when streaming fails
authorThibaut Girka <thib@sitedethib.com>
Sun, 17 Feb 2019 13:28:25 +0000 (14:28 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 17 Feb 2019 13:28:25 +0000 (14:28 +0100)
Port 041ff5fa9a45f7b8d1048a05a35611622b6f5fdb to glitch-soc

app/javascript/flavours/glitch/features/status/components/detailed_status.js

index 8f49a9a3017b8933ea33d736f36ff3c9c47a0980..120ae68172a01dcbf92bca3dae7e6362a5fd39e6 100644 (file)
@@ -98,7 +98,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 { expanded, onToggleHidden, settings } = this.props;
     const outerStyle = { boxSizing: 'border-box' };
     const { compact } = this.props;