diff --git a/resources/assets/components/partials/post/ContextMenu.vue b/resources/assets/components/partials/post/ContextMenu.vue index 655499d33..ad94da335 100644 --- a/resources/assets/components/partials/post/ContextMenu.vue +++ b/resources/assets/components/partials/post/ContextMenu.vue @@ -1,803 +1,1021 @@ + + diff --git a/resources/assets/components/sections/Timeline.vue b/resources/assets/components/sections/Timeline.vue index ea215d895..2d23d5909 100644 --- a/resources/assets/components/sections/Timeline.vue +++ b/resources/assets/components/sections/Timeline.vue @@ -91,6 +91,8 @@ v-on:delete="deletePost" v-on:report-modal="handleReport" v-on:edit="handleEdit" + v-on:muted="handleMuted" + v-on:unfollow="handleUnfollow" /> { }) }, + + handleMuted(post) { + this.feed = this.feed.filter(p => { + return p.account.id !== post.account.id; + }); + }, + + handleUnfollow(post) { + if(this.scope === 'home') { + this.feed = this.feed.filter(p => { + return p.account.id !== post.account.id; + }); + } + this.updateProfile({ following_count: this.profile.following_count - 1 }); + }, }, watch: {