From 07057043d96cef9d3a0087f46fa4ff14a1f6788f Mon Sep 17 00:00:00 2001 From: eal Date: Tue, 14 Nov 2017 18:08:03 +0200 Subject: Use state object for user view instead of timeline. Also fetch user if not in the state already. --- .../backend_interactor_service/backend_interactor_service.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/services/backend_interactor_service') diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index 51a46e45..ddaae3b2 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -22,6 +22,10 @@ const backendInteractorService = (credentials) => { return apiService.fetchAllFollowing({username, credentials}) } + const fetchUser = ({id}) => { + return apiService.fetchUser({id, credentials}) + } + const followUser = (id) => { return apiService.followUser({credentials, id}) } @@ -65,6 +69,7 @@ const backendInteractorService = (credentials) => { unfollowUser, blockUser, unblockUser, + fetchUser, fetchAllFollowing, verifyCredentials: apiService.verifyCredentials, startFetching, -- cgit v1.2.3-70-g09d2