logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: e41edd1bbfa0118a09a49753a39f5a67d48cd5b8
parent 6175a153ed4e5eb30fd4b5d5f6b3fff34a81a89c
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Tue, 29 Nov 2022 14:56:11 +0000

Merge branch 'from/develop/tusooa/fix-fetchTimeline' into 'develop'

Fix fetchTimeline error

See merge request pleroma/pleroma-fe!1688

Diffstat:

Msrc/modules/api.js2+-
Msrc/modules/users.js2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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)