diff options
| author | jasper <jasper92341@hotmail.com> | 2019-02-26 23:21:04 -0800 |
|---|---|---|
| committer | jasper <jasper92341@hotmail.com> | 2019-02-26 23:21:04 -0800 |
| commit | 7698a6fb0dad962a15855adc2a9c4134abe13de7 (patch) | |
| tree | 7471de0dc7acae9401fe23312a35e426ccca1d10 /src/components/user_card_content/user_card_content.js | |
| parent | 4e79300232288fd9b7c4456e8b461f7c1cbac6fa (diff) | |
Remove posts by blocking or unfollowing
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
| -rw-r--r-- | src/components/user_card_content/user_card_content.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index d2a97a84..35139504 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -105,7 +105,6 @@ export default { this.followRequestInProgress = true requestUnfollow(this.user, store).then(() => { this.followRequestInProgress = false - store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) }) }, @@ -114,7 +113,6 @@ export default { store.state.api.backendInteractor.blockUser(this.user.id) .then((blockedUser) => { store.commit('addNewUsers', [blockedUser]) - store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) store.commit('removeStatus', { timeline: 'public', userId: this.user.id }) store.commit('removeStatus', { timeline: 'publicAndExternal', userId: this.user.id }) @@ -123,9 +121,7 @@ export default { unblockUser () { const store = this.$store store.state.api.backendInteractor.unblockUser(this.user.id) - .then((unblockedUser) => { - store.commit('addNewUsers', [unblockedUser]) - }) + .then((unblockedUser) => store.commit('addNewUsers', [unblockedUser])) }, toggleMute () { const store = this.$store |
