fix follower remove api call
This commit is contained in:
parent
bf1f7d8f93
commit
7528b0b122
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,
|
||||
muteDomain as apiMuteDomain,
|
||||
muteUser as apiMuteUser,
|
||||
removeUserFromFollowers as apiRemoveUserFromFollowers,
|
||||
unblockUser as apiUnblockUser,
|
||||
unmuteDomain as apiUnmuteDomain,
|
||||
unmuteUser as apiUnmuteUser,
|
||||
|
|
@ -112,7 +113,7 @@ const unblockUser = (store, id) => {
|
|||
}
|
||||
|
||||
const removeUserFromFollowers = (store, id) => {
|
||||
return removeUserFromFollowers({ id }).then((relationship) =>
|
||||
return apiRemoveUserFromFollowers({ id }).then(({ data: relationship }) =>
|
||||
store.commit('updateUserRelationship', [relationship]),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue