diff options
Diffstat (limited to 'src/store/timeline.js')
-rw-r--r-- | src/store/timeline.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/store/timeline.js b/src/store/timeline.js index 0b633974..e18b2746 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -49,8 +49,11 @@ const actions = { fetchTimeline(context, account) { const sinceTimestamp = Date.parse(state.since)/1000; return axios.get(OC.generateUrl('apps/social/api/v1/timeline?limit=5&since=' + sinceTimestamp)).then((response) => { + if (response.status === -1) { + throw response.message; + } context.commit('addToTimeline', response.data.result); - return response.data.result; + return response.data; }) } } |