aboutsummaryrefslogtreecommitdiff
path: root/src/services/backend_interactor_service
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-05-15 18:26:09 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-05-15 18:26:09 +0000
commitfedcc716762339b72f6a99722f2c54a300fdff4f (patch)
tree15c89025e846ba322003bc9cb0965d3ed1fac00a /src/services/backend_interactor_service
parent9eac355851b40aa5df9e6b23eca8c0ff1698e670 (diff)
parent2ce01863273fdefad7bca945f5d58d50a0e8d77b (diff)
Merge branch '468-pin-status' into 'develop'
Add ability to pin posts Closes #468 See merge request pleroma/pleroma-fe!770
Diffstat (limited to 'src/services/backend_interactor_service')
-rw-r--r--src/services/backend_interactor_service/backend_interactor_service.js6
1 files changed, 6 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 c2b93de4..e23e1222 100644
--- a/src/services/backend_interactor_service/backend_interactor_service.js
+++ b/src/services/backend_interactor_service/backend_interactor_service.js
@@ -98,6 +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({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)
@@ -144,6 +147,9 @@ const backendInteractorService = (credentials) => {
fetchBlocks,
fetchOAuthTokens,
revokeOAuthToken,
+ fetchPinnedStatuses,
+ pinOwnStatus,
+ unpinOwnStatus,
tagUser,
untagUser,
addRight,