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:
HJ 2024-12-11 13:34:06 +00:00
commit 7e92c4c1a3
4 changed files with 5 additions and 15 deletions

View file

@ -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 }) {