diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-04-22 15:06:10 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-04-22 15:06:10 +0300 |
| commit | aa561473226d22d71c37756265df6949795a6cab (patch) | |
| tree | 3fab898008b249eae92b7938521e6b91d3cd8b5a /src/components/follow_button | |
| parent | 576ad9750be4a76df7f7cc4d7062aa4546d7f61f (diff) | |
fix follow
Diffstat (limited to 'src/components/follow_button')
| -rw-r--r-- | src/components/follow_button/follow_button.js | 6 |
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 }) }) } } |
