about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-11-01 16:25:02 +0100
committerFire Demon <firedemon@creature.cafe>2020-11-03 01:23:20 -0600
commitfa982ae8d7118c20aa145312b36096a453eeb695 (patch)
tree80cfa84c2206b97ef60ff708cd264f52bffba6c8 /app
parent2c7ecc6e8981422dc682e21681b56507c0fddb99 (diff)
Fix crash when viewing a profile with a filtered out pinned toot
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/containers/status_container.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/containers/status_container.js b/app/javascript/flavours/glitch/containers/status_container.js
index 85bedb787..5d60ffd97 100644
--- a/app/javascript/flavours/glitch/containers/status_container.js
+++ b/app/javascript/flavours/glitch/containers/status_container.js
@@ -57,7 +57,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') {