From fdd30af59510dbc5ffaabd2f262b9a993b6896c5 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Tue, 18 Oct 2016 01:11:00 +0200
Subject: Will this fix the issue?

---
 app/assets/javascripts/components/selectors/index.jsx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'app/assets/javascripts/components/selectors/index.jsx')

diff --git a/app/assets/javascripts/components/selectors/index.jsx b/app/assets/javascripts/components/selectors/index.jsx
index c3c007f28..91f900f90 100644
--- a/app/assets/javascripts/components/selectors/index.jsx
+++ b/app/assets/javascripts/components/selectors/index.jsx
@@ -29,15 +29,20 @@ const getAccountTimelineIds = (state, id) => state.getIn(['timelines', 'accounts
 
 const assembleStatus = (id, statuses, accounts) => {
   let status = statuses.get(id, null);
+  let reblog = null;
 
   if (status === null) {
     return null;
   }
 
-  let reblog = statuses.get(status.get('reblog'), null);
+  if (status.get('reblog', null) !== null) {
+    reblog = statuses.get(status.get('reblog'), null);
 
-  if (reblog !== null) {
-    reblog = reblog.set('account', accounts.get(reblog.get('account')));
+    if (reblog !== null) {
+      reblog = reblog.set('account', accounts.get(reblog.get('account')));
+    } else {
+      return null;
+    }
   }
 
   return status.set('reblog', reblog).set('account', accounts.get(status.get('account')));
-- 
cgit 

