aboutsummaryrefslogtreecommitdiff
path: root/src/services/follow_manipulate/follow_manipulate.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-03-27 20:28:55 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-03-27 20:28:55 +0000
commitaed0943678ffb96df0c281a7edbba63aaa6578e8 (patch)
tree79eeb566c57664b3214dd8088b27b88de6ea693a /src/services/follow_manipulate/follow_manipulate.js
parent4d66b9cf45c3ae2c965347860383767921f5eb55 (diff)
parent66ab131bd431f955814d0c85e8d9445fc8e46c51 (diff)
Merge branch 'mastoapi/actions' into 'develop'
transition to MastoAPI: Basic user/statuses manipulation See merge request pleroma/pleroma-fe!669
Diffstat (limited to 'src/services/follow_manipulate/follow_manipulate.js')
-rw-r--r--src/services/follow_manipulate/follow_manipulate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/follow_manipulate/follow_manipulate.js b/src/services/follow_manipulate/follow_manipulate.js
index 1e9bd679..51dafe84 100644
--- a/src/services/follow_manipulate/follow_manipulate.js
+++ b/src/services/follow_manipulate/follow_manipulate.js
@@ -19,7 +19,7 @@ const fetchUser = (attempt, user, store) => new Promise((resolve, reject) => {
export const requestFollow = (user, store) => new Promise((resolve, reject) => {
store.state.api.backendInteractor.followUser(user.id)
.then((updated) => {
- store.commit('addNewUsers', [updated])
+ store.commit('updateUserRelationship', [updated])
// For locked users we just mark it that we sent the follow request
if (updated.locked) {
@@ -66,7 +66,7 @@ export const requestFollow = (user, store) => new Promise((resolve, reject) => {
export const requestUnfollow = (user, store) => new Promise((resolve, reject) => {
store.state.api.backendInteractor.unfollowUser(user.id)
.then((updated) => {
- store.commit('addNewUsers', [updated])
+ store.commit('updateUserRelationship', [updated])
resolve({
updated
})