aboutsummaryrefslogtreecommitdiff
path: root/src/modules/api.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 22:29:13 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-22 22:29:13 +0000
commit272b748f26d0bb7b9f3a00336a908d507f4169bc (patch)
treee0d102a21b4a62aab390617b2b217341cb969e3d /src/modules/api.js
parenta403f93b478eec67d779400b1fcfdc006bb787da (diff)
parent88a3cf8705f925c31b5fad67d0fb709a51447156 (diff)
Merge branch 'develop' into 'allow-opening-profile-in-user-popover'
# Conflicts: # src/components/settings_modal/tabs/general_tab.vue
Diffstat (limited to 'src/modules/api.js')
-rw-r--r--src/modules/api.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/modules/api.js b/src/modules/api.js
index 28f2076e..80a978f9 100644
--- a/src/modules/api.js
+++ b/src/modules/api.js
@@ -191,12 +191,13 @@ const api = {
startFetchingTimeline (store, {
timeline = 'friends',
tag = false,
- userId = false
+ userId = false,
+ listId = false
}) {
if (store.state.fetchers[timeline]) return
const fetcher = store.state.backendInteractor.startFetchingTimeline({
- timeline, store, userId, tag
+ timeline, store, userId, listId, tag
})
store.commit('addFetcher', { fetcherName: timeline, fetcher })
},
@@ -248,6 +249,18 @@ const api = {
store.commit('setFollowRequests', requests)
},
+ // Lists
+ startFetchingLists (store) {
+ if (store.state.fetchers.lists) return
+ const fetcher = store.state.backendInteractor.startFetchingLists({ store })
+ store.commit('addFetcher', { fetcherName: 'lists', fetcher })
+ },
+ stopFetchingLists (store) {
+ const fetcher = store.state.fetchers.lists
+ if (!fetcher) return
+ store.commit('removeFetcher', { fetcherName: 'lists', fetcher })
+ },
+
// Pleroma websocket
setWsToken (store, token) {
store.commit('setWsToken', token)