From a601337a208e37dd5a2ecb4a5193c27a352c811b Mon Sep 17 00:00:00 2001
From: taehoon
Date: Wed, 24 Apr 2019 21:56:09 -0400
Subject: [PATCH] clean up
---
.../backend_interactor_service.js | 16 +++++-----------
.../entity_normalizer.service.js | 1 -
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js
index 7a302f57..e23e1222 100644
--- a/src/services/backend_interactor_service/backend_interactor_service.js
+++ b/src/services/backend_interactor_service/backend_interactor_service.js
@@ -43,14 +43,6 @@ const backendInteractorService = (credentials) => {
return apiService.unfollowUser({credentials, id})
}
- const pinOwnStatus = (id) => {
- return apiService.pinOwnStatus({credentials, id})
- }
-
- const unpinOwnStatus = (id) => {
- return apiService.unpinOwnStatus({ credentials, id })
- }
-
const blockUser = (id) => {
return apiService.blockUser({credentials, id})
}
@@ -106,7 +98,9 @@ const backendInteractorService = (credentials) => {
const fetchFollowRequests = () => apiService.fetchFollowRequests({credentials})
const fetchOAuthTokens = () => apiService.fetchOAuthTokens({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 register = (params) => apiService.register(params)
@@ -139,8 +133,6 @@ const backendInteractorService = (credentials) => {
fetchFollowers,
followUser,
unfollowUser,
- pinOwnStatus,
- unpinOwnStatus,
blockUser,
unblockUser,
fetchUser,
@@ -156,6 +148,8 @@ const backendInteractorService = (credentials) => {
fetchOAuthTokens,
revokeOAuthToken,
fetchPinnedStatuses,
+ pinOwnStatus,
+ unpinOwnStatus,
tagUser,
untagUser,
addRight,
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
index 7f03ae2a..97e20b99 100644
--- a/src/services/entity_normalizer/entity_normalizer.service.js
+++ b/src/services/entity_normalizer/entity_normalizer.service.js
@@ -131,7 +131,6 @@ export const parseUser = (data) => {
output.statuses_count = data.statuses_count
output.friendIds = []
output.followerIds = []
-
if (data.pleroma) {
output.follow_request_count = data.pleroma.follow_request_count
}