aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-01 11:37:34 -0500
committertaehoon <th.dev91@gmail.com>2019-03-21 16:19:09 -0400
commit302310a653083bc82226cf0743d52fc02c277a8a (patch)
tree94880874dd334aa1dd54079c22ad3ba96b741198 /src/components
parenta6ce191cbcc34f309e9c4d4e3f7e3c11ed020821 (diff)
Remove old muting logic
Diffstat (limited to 'src/components')
-rw-r--r--src/components/mute_card/mute_card.js2
-rw-r--r--src/components/user_card/user_card.js10
2 files changed, 3 insertions, 9 deletions
diff --git a/src/components/mute_card/mute_card.js b/src/components/mute_card/mute_card.js
index 5ef17b60..65c9cfb5 100644
--- a/src/components/mute_card/mute_card.js
+++ b/src/components/mute_card/mute_card.js
@@ -12,7 +12,7 @@ const MuteCard = {
return this.$store.getters.findUser(this.userId)
},
muted () {
- return this.user.mastodonMuted
+ return this.user.muted
}
},
components: {
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index 61b784fe..197c61d5 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -126,18 +126,12 @@ export default {
unblockUser () {
this.$store.dispatch('unblockUser', this.user.id)
},
- muteUser () { // Mastodon Mute
+ muteUser () {
this.$store.dispatch('muteUser', this.user.id)
},
- unmuteUser () { // Mastodon Unmute
+ unmuteUser () {
this.$store.dispatch('unmuteUser', this.user.id)
},
- toggleMute () {
- // TODO: Pleroma mute/unmute, Need to migrate to the Mastodon API
- const store = this.$store
- store.commit('setMuted', {user: this.user, muted: !this.user.muted})
- store.state.api.backendInteractor.setUserMute(this.user)
- },
setProfileView (v) {
if (this.switcher) {
const store = this.$store