Merge pull request 'Fix follower remove api call' (#3560) from iamtakingiteasy/pleroma-fe:fix-follower-remove-api-call into develop
Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3560
This commit is contained in:
commit
8c87f9fcff
2 changed files with 3 additions and 1 deletions
1
changelog.d/follower-remove.fix
Normal file
1
changelog.d/follower-remove.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix follower remove API call
|
||||||
|
|
@ -39,6 +39,7 @@ import {
|
||||||
editUserNote as apiEditUserNote,
|
editUserNote as apiEditUserNote,
|
||||||
muteDomain as apiMuteDomain,
|
muteDomain as apiMuteDomain,
|
||||||
muteUser as apiMuteUser,
|
muteUser as apiMuteUser,
|
||||||
|
removeUserFromFollowers as apiRemoveUserFromFollowers,
|
||||||
unblockUser as apiUnblockUser,
|
unblockUser as apiUnblockUser,
|
||||||
unmuteDomain as apiUnmuteDomain,
|
unmuteDomain as apiUnmuteDomain,
|
||||||
unmuteUser as apiUnmuteUser,
|
unmuteUser as apiUnmuteUser,
|
||||||
|
|
@ -112,7 +113,7 @@ const unblockUser = (store, id) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeUserFromFollowers = (store, id) => {
|
const removeUserFromFollowers = (store, id) => {
|
||||||
return removeUserFromFollowers({ id }).then((relationship) =>
|
return apiRemoveUserFromFollowers({ id }).then(({ data: relationship }) =>
|
||||||
store.commit('updateUserRelationship', [relationship]),
|
store.commit('updateUserRelationship', [relationship]),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue