diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 4507056f..3dad3960 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -397,8 +397,16 @@ {{user.display_name}}

+
+ Unfollow +
+
+
+

You are not following anyone.

+
+

Load more

@@ -1025,6 +1033,17 @@ export default { return; } this.$refs.visitorContextMenu.show(); + }, + + followModalAction(id, index, type = 'following') { + axios.post('/i/follow', { + item: id + }).then(res => { + if(type == 'following') { + this.following.splice(index, 1); + this.profile.following_count--; + } + }) } } }