]> cat aescling's git repositories - mastodon.git/commitdiff
Fix crash when viewing a profile with a filtered out pinned toot
authorThibaut Girka <thib@sitedethib.com>
Sun, 1 Nov 2020 15:25:02 +0000 (16:25 +0100)
committerThibG <thib@sitedethib.com>
Sun, 1 Nov 2020 15:53:03 +0000 (16:53 +0100)
app/javascript/flavours/glitch/containers/status_container.js

index ac423c58db07feeff14cb84a49e6f054e1fd92b4..7782246a6002c78a8e8dfe40086542f1e2f73248 100644 (file)
@@ -55,7 +55,7 @@ const makeMapStateToProps = () => {
     let account = undefined;
     let prepend = undefined;
 
-    if (props.featured) {
+    if (props.featured && status) {
       account = status.get('account');
       prepend = 'featured';
     } else if (reblogStatus !== null && typeof reblogStatus === 'object') {