diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 2071b2795..34112e1e4 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -287,9 +287,15 @@ {{user.display_name}}

+ Unfollow -
+
+
+

You are not following anyone.

+
+
+

Load more

@@ -973,6 +979,16 @@ }).then(res => { this.suggestions.splice(index, 1); }) + }, + + followModalAction(id, index, type = 'following') { + axios.post('/i/follow', { + item: id + }).then(res => { + if(type == 'following') { + this.following.splice(index, 1); + } + }) } } }