Removed relationship fetch on timeline successful load
• Removed: - relationship fetch on timeline successful load
This commit is contained in:
parent
5d71dc2be3
commit
1da4cb9f0f
@ -24,13 +24,6 @@ const parseTags = (tags = {}, mode) => {
|
|||||||
return (tags[mode] || []).map((tag) => tag.value)
|
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')
|
const next = getLinks(response).refs.find(link => link.rel === 'next')
|
||||||
dispatch(importFetchedStatuses(response.data))
|
dispatch(importFetchedStatuses(response.data))
|
||||||
dispatch(expandTimelineSuccess(timelineId, response.data, next ? next.uri : null, response.code === 206, isLoadingRecent, isLoadingMore))
|
dispatch(expandTimelineSuccess(timelineId, response.data, next ? next.uri : null, response.code === 206, isLoadingRecent, isLoadingMore))
|
||||||
fetchStatusesAccountsRelationships(dispatch, response.data)
|
|
||||||
done()
|
done()
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
dispatch(expandTimelineFail(timelineId, error, isLoadingMore))
|
dispatch(expandTimelineFail(timelineId, error, isLoadingMore))
|
||||||
|
Loading…
Reference in New Issue
Block a user