diff --git a/resources/assets/js/components/SearchResults.vue b/resources/assets/js/components/SearchResults.vue index e93354190..2d54ec93b 100644 --- a/resources/assets/js/components/SearchResults.vue +++ b/resources/assets/js/components/SearchResults.vue @@ -57,9 +57,9 @@ {{profile.value}}

- + + +

@@ -140,12 +140,12 @@ export default { }) }, - followProfile(id) { - // todo: finish AP Accept handling to enable remote follows + followProfile(profile) { + this.loading = true; axios.post('/i/follow', { - item: id + item: profile.entity.id }).then(res => { - window.location.href = window.location.href; + this.fetchSearchResults(); }).catch(err => { if(err.response.data.message) { swal('Error', err.response.data.message, 'error');