diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-08-09 21:46:55 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-08-09 21:46:55 +0000 |
| commit | 7773e7de6454a7ecd79b695ba27cccabeaca184e (patch) | |
| tree | f14fc29167d7b2a21264351236f1721dd0794456 /src/services/backend_interactor_service | |
| parent | 2867c696293a96375f60898e10d7a702f60855c5 (diff) | |
| parent | 891fbf996d7ddd415d99ea9065d54b0f493b5422 (diff) | |
Merge branch 'lists-implementation' into 'develop'
Add lists support
See merge request pleroma/pleroma-fe!1584
Diffstat (limited to 'src/services/backend_interactor_service')
| -rw-r--r-- | src/services/backend_interactor_service/backend_interactor_service.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index 4a40f5b5..62ee8549 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -2,10 +2,11 @@ import apiService, { getMastodonSocketURI, ProcessedWS } from '../api/api.servic import timelineFetcher from '../timeline_fetcher/timeline_fetcher.service.js' import notificationsFetcher from '../notifications_fetcher/notifications_fetcher.service.js' import followRequestFetcher from '../../services/follow_request_fetcher/follow_request_fetcher.service' +import listsFetcher from '../../services/lists_fetcher/lists_fetcher.service.js' const backendInteractorService = credentials => ({ - startFetchingTimeline ({ timeline, store, userId = false, tag }) { - return timelineFetcher.startFetching({ timeline, store, credentials, userId, tag }) + startFetchingTimeline ({ timeline, store, userId = false, listId = false, tag }) { + return timelineFetcher.startFetching({ timeline, store, credentials, userId, listId, tag }) }, fetchTimeline (args) { @@ -24,6 +25,10 @@ const backendInteractorService = credentials => ({ return followRequestFetcher.startFetching({ store, credentials }) }, + startFetchingLists ({ store }) { + return listsFetcher.startFetching({ store, credentials }) + }, + startUserSocket ({ store }) { const serv = store.rootState.instance.server.replace('http', 'ws') const url = serv + getMastodonSocketURI({ credentials, stream: 'user' }) |
