From 08b3de4d5ee73f06966724108a3975a9110140e3 Mon Sep 17 00:00:00 2001 From: ThibG Date: Fri, 9 Nov 2018 17:43:25 +0100 Subject: [PATCH] Remove unused computation of reblog references from updateTimeline (#9244) --- app/javascript/mastodon/actions/timelines.js | 3 --- 1 file changed, 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, }); }; };