diff --git a/webapp/components/FollowButton.vue b/webapp/components/FollowButton.vue index 5275035e5..e1cad8c8e 100644 --- a/webapp/components/FollowButton.vue +++ b/webapp/components/FollowButton.vue @@ -73,7 +73,7 @@ export default { variables: { id: this.followId }, }) - const followedUser = follow ? data.follow : data.unfollow + const followedUser = follow ? data.followUser : data.unfollowUser this.$emit('update', followedUser) } catch { optimisticResult.followedByCurrentUser = !follow diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index 11149f398..27b3785ae 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -106,7 +106,7 @@ export const followUserMutation = i18n => { return gql` ${userFragment(lang)} mutation($id: ID!) { - follow(id: $id, type: User) { + followUser(id: $id) { name followedByCount followedByCurrentUser @@ -123,7 +123,7 @@ export const unfollowUserMutation = i18n => { return gql` ${userFragment(lang)} mutation($id: ID!) { - unfollow(id: $id, type: User) { + unfollowUser(id: $id) { name followedByCount followedByCurrentUser