From 1da4cb9f0f48b01ac5abc01b222dcf556280be36 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sat, 9 Jan 2021 01:06:35 -0500 Subject: [PATCH] Removed relationship fetch on timeline successful load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - relationship fetch on timeline successful load --- app/javascript/gabsocial/actions/timelines.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/gabsocial/actions/timelines.js b/app/javascript/gabsocial/actions/timelines.js index 088944b6..04f0f4e2 100644 --- a/app/javascript/gabsocial/actions/timelines.js +++ b/app/javascript/gabsocial/actions/timelines.js @@ -24,13 +24,6 @@ const parseTags = (tags = {}, mode) => { return (tags[mode] || []).map((tag) => tag.value) } -const fetchStatusesAccountsRelationships = (dispatch, statuses) => { - const accountIds = statuses.map(item => item.account.id) - if (accountIds.length > 0) { - dispatch(fetchRelationships(accountIds)) - } -} - /** * */ @@ -161,7 +154,6 @@ export const expandTimeline = (timelineId, path, params = {}, done = noop) => (d const next = getLinks(response).refs.find(link => link.rel === 'next') dispatch(importFetchedStatuses(response.data)) dispatch(expandTimelineSuccess(timelineId, response.data, next ? next.uri : null, response.code === 206, isLoadingRecent, isLoadingMore)) - fetchStatusesAccountsRelationships(dispatch, response.data) done() }).catch((error) => { dispatch(expandTimelineFail(timelineId, error, isLoadingMore))