diff --git a/src/modules/api.js b/src/modules/api.js index 0acc03f1ff..fee584e843 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -216,7 +216,7 @@ const api = { if (!fetcher) return store.commit('removeFetcher', { fetcherName: timeline, fetcher }) }, - fetchTimeline (store, timeline, { ...rest }) { + fetchTimeline (store, { timeline, ...rest }) { store.state.backendInteractor.fetchTimeline({ store, timeline, diff --git a/src/modules/users.js b/src/modules/users.js index eef87c2cbb..10b4603fa1 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -588,7 +588,7 @@ const users = { } if (store.getters.mergedConfig.useStreamingApi) { - store.dispatch('fetchTimeline', 'friends', { since: null }) + store.dispatch('fetchTimeline', { timeline: 'friends', since: null }) store.dispatch('fetchNotifications', { since: null }) store.dispatch('enableMastoSockets', true).catch((error) => { console.error('Failed initializing MastoAPI Streaming socket', error)