aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_button
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-04-22 15:06:10 +0300
committerShpuld Shpuldson <shp@cock.li>2020-04-22 15:06:10 +0300
commitaa561473226d22d71c37756265df6949795a6cab (patch)
tree3fab898008b249eae92b7938521e6b91d3cd8b5a /src/components/follow_button
parent576ad9750be4a76df7f7cc4d7062aa4546d7f61f (diff)
fix follow
Diffstat (limited to 'src/components/follow_button')
-rw-r--r--src/components/follow_button/follow_button.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js
index af7b1fef..95e7cb6b 100644
--- a/src/components/follow_button/follow_button.js
+++ b/src/components/follow_button/follow_button.js
@@ -37,16 +37,16 @@ export default {
},
follow () {
this.inProgress = true
- requestFollow(this.user, this.$store).then(() => {
+ requestFollow(this.relationship.id, this.$store).then(() => {
this.inProgress = false
})
},
unfollow () {
const store = this.$store
this.inProgress = true
- requestUnfollow(this.user, store).then(() => {
+ requestUnfollow(this.relationship.id, store).then(() => {
this.inProgress = false
- store.commit('removeStatus', { timeline: 'friends', userId: this.user.id })
+ store.commit('removeStatus', { timeline: 'friends', userId: this.relationship.id })
})
}
}