about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-11-09 17:43:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-11-09 17:43:25 +0100
commit08b3de4d5ee73f06966724108a3975a9110140e3 (patch)
tree84f3cb4008af8430a333b361bb1e7cd0c6c67a61 /app
parented7c5f94f7c8c062c3a931fd2cf4f37433c81c13 (diff)
Remove unused computation of reblog references from updateTimeline (#9244)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/timelines.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/javascript/mastodon/actions/timelines.js b/app/javascript/mastodon/actions/timelines.js
index 8cb06c157..74ad55652 100644
--- a/app/javascript/mastodon/actions/timelines.js
+++ b/app/javascript/mastodon/actions/timelines.js
@@ -16,8 +16,6 @@ export const TIMELINE_DISCONNECT = 'TIMELINE_DISCONNECT';
 
 export function updateTimeline(timeline, status, accept) {
   return (dispatch, getState) => {
-    const references = status.reblog ? getState().get('statuses').filter((item, itemId) => (itemId === status.reblog.id || item.get('reblog') === status.reblog.id)).map((_, itemId) => itemId) : [];
-
     if (typeof accept === 'function' && !accept(status)) {
       return;
     }
@@ -28,7 +26,6 @@ export function updateTimeline(timeline, status, accept) {
       type: TIMELINE_UPDATE,
       timeline,
       status,
-      references,
     });
   };
 };