logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 4b252ea8d3bf672a8eaa5abd7dcb866e47273df7
parent 2e3d4d772835b5de8750db2e8669c1abc4903994
Author: tusooa <tusooa@kazv.moe>
Date:   Thu, 24 Nov 2022 23:11:30 -0500

Fix fetchTimeline error

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)