This commit is contained in:
taehoon 2019-04-24 21:56:09 -04:00
parent 93e9bc019e
commit a601337a20
2 changed files with 5 additions and 12 deletions

View File

@ -43,14 +43,6 @@ const backendInteractorService = (credentials) => {
return apiService.unfollowUser({credentials, id}) return apiService.unfollowUser({credentials, id})
} }
const pinOwnStatus = (id) => {
return apiService.pinOwnStatus({credentials, id})
}
const unpinOwnStatus = (id) => {
return apiService.unpinOwnStatus({ credentials, id })
}
const blockUser = (id) => { const blockUser = (id) => {
return apiService.blockUser({credentials, id}) return apiService.blockUser({credentials, id})
} }
@ -106,7 +98,9 @@ const backendInteractorService = (credentials) => {
const fetchFollowRequests = () => apiService.fetchFollowRequests({credentials}) const fetchFollowRequests = () => apiService.fetchFollowRequests({credentials})
const fetchOAuthTokens = () => apiService.fetchOAuthTokens({credentials}) const fetchOAuthTokens = () => apiService.fetchOAuthTokens({credentials})
const revokeOAuthToken = (id) => apiService.revokeOAuthToken({id, credentials}) const revokeOAuthToken = (id) => apiService.revokeOAuthToken({id, credentials})
const fetchPinnedStatuses = (id) => apiService.fetchPinnedStatuses({ id, credentials }) const fetchPinnedStatuses = (id) => apiService.fetchPinnedStatuses({credentials, id})
const pinOwnStatus = (id) => apiService.pinOwnStatus({credentials, id})
const unpinOwnStatus = (id) => apiService.unpinOwnStatus({credentials, id})
const getCaptcha = () => apiService.getCaptcha() const getCaptcha = () => apiService.getCaptcha()
const register = (params) => apiService.register(params) const register = (params) => apiService.register(params)
@ -139,8 +133,6 @@ const backendInteractorService = (credentials) => {
fetchFollowers, fetchFollowers,
followUser, followUser,
unfollowUser, unfollowUser,
pinOwnStatus,
unpinOwnStatus,
blockUser, blockUser,
unblockUser, unblockUser,
fetchUser, fetchUser,
@ -156,6 +148,8 @@ const backendInteractorService = (credentials) => {
fetchOAuthTokens, fetchOAuthTokens,
revokeOAuthToken, revokeOAuthToken,
fetchPinnedStatuses, fetchPinnedStatuses,
pinOwnStatus,
unpinOwnStatus,
tagUser, tagUser,
untagUser, untagUser,
addRight, addRight,

View File

@ -131,7 +131,6 @@ export const parseUser = (data) => {
output.statuses_count = data.statuses_count output.statuses_count = data.statuses_count
output.friendIds = [] output.friendIds = []
output.followerIds = [] output.followerIds = []
if (data.pleroma) { if (data.pleroma) {
output.follow_request_count = data.pleroma.follow_request_count output.follow_request_count = data.pleroma.follow_request_count
} }