diff options
Diffstat (limited to 'app/assets/javascripts/components/actions')
-rw-r--r-- | app/assets/javascripts/components/actions/accounts.jsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/actions/accounts.jsx b/app/assets/javascripts/components/actions/accounts.jsx index 37ebb9969..eac5c78bb 100644 --- a/app/assets/javascripts/components/actions/accounts.jsx +++ b/app/assets/javascripts/components/actions/accounts.jsx @@ -126,7 +126,8 @@ export function expandAccountTimeline(id) { max_id: lastId } }).then(response => { - dispatch(expandAccountTimelineSuccess(id, response.data)); + const next = getLinks(response).refs.find(link => link.rel === 'next'); + dispatch(expandAccountTimelineSuccess(id, response.data, next)); }).catch(error => { dispatch(expandAccountTimelineFail(id, error)); }); @@ -257,11 +258,12 @@ export function expandAccountTimelineRequest(id) { }; }; -export function expandAccountTimelineSuccess(id, statuses) { +export function expandAccountTimelineSuccess(id, statuses, next) { return { type: ACCOUNT_TIMELINE_EXPAND_SUCCESS, id, - statuses + statuses, + next }; }; |