Merge branch 'deprecate-subscribe' into 'develop'
Use /api/v1/accounts/:id/follow for account subscriptions instead of the deprecated routes See merge request pleroma/pleroma-fe!1931
This commit is contained in:
commit
7e92c4c1a3
4 changed files with 5 additions and 15 deletions
|
|
@ -452,11 +452,11 @@ const users = {
|
|||
commit('clearFollowers', userId)
|
||||
},
|
||||
subscribeUser ({ rootState, commit }, id) {
|
||||
return rootState.api.backendInteractor.subscribeUser({ id })
|
||||
return rootState.api.backendInteractor.followUser({ id, notify: true })
|
||||
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
||||
},
|
||||
unsubscribeUser ({ rootState, commit }, id) {
|
||||
return rootState.api.backendInteractor.unsubscribeUser({ id })
|
||||
return rootState.api.backendInteractor.followUser({ id, notify: false })
|
||||
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
||||
},
|
||||
toggleActivationStatus ({ rootState, commit }, { user }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue