aboutsummaryrefslogtreecommitdiff
path: root/src/services/backend_interactor_service
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-03-15 13:14:41 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-03-15 13:14:41 +0000
commit9364964b017154f61072ffa70b08f2ed0c7dcaeb (patch)
treebcc17450b6d66df1c12acf25eea05fb5d4ed34ab /src/services/backend_interactor_service
parent92eb55c7bc3cf210b86259b99c3e2b8f192bf325 (diff)
parent71c12fa3a58ff2b498ed5ba9d3fc3d58d016bd97 (diff)
Merge branch 'mastoapi/user-stuff' into 'develop'
Transition to MastoAPI: user data See merge request pleroma/pleroma-fe!655
Diffstat (limited to 'src/services/backend_interactor_service')
-rw-r--r--src/services/backend_interactor_service/backend_interactor_service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js
index 7e972d7b..cbd0b733 100644
--- a/src/services/backend_interactor_service/backend_interactor_service.js
+++ b/src/services/backend_interactor_service/backend_interactor_service.js
@@ -30,6 +30,10 @@ const backendInteractorService = (credentials) => {
return apiService.fetchUser({id, credentials})
}
+ const fetchUserRelationship = ({id}) => {
+ return apiService.fetchUserRelationship({id, credentials})
+ }
+
const followUser = (id) => {
return apiService.followUser({credentials, id})
}
@@ -92,6 +96,7 @@ const backendInteractorService = (credentials) => {
blockUser,
unblockUser,
fetchUser,
+ fetchUserRelationship,
fetchAllFollowing,
verifyCredentials: apiService.verifyCredentials,
startFetching,