Partially transitioned user data to MastoAPI. Added support for fetching
relationship data. Upgraded code to be more resilient to nulls caused by missing data in either APIs
This commit is contained in:
parent
09736691ea
commit
ee49409049
6 changed files with 59 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue