From 6237897def2b3bb6c8f0808790698ae161b42d55 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 24 Sep 2019 21:20:53 -0600 Subject: [PATCH] Update FollowerController, make follow and unfollow methods public --- app/Http/Controllers/FollowerController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/FollowerController.php b/app/Http/Controllers/FollowerController.php index 97a3700d2..b3b6b2e4a 100644 --- a/app/Http/Controllers/FollowerController.php +++ b/app/Http/Controllers/FollowerController.php @@ -109,7 +109,7 @@ class FollowerController extends Controller Cache::forget('user:account:id:'.$user->user_id); } - protected function sendFollow($user, $target) + public function sendFollow($user, $target) { if($target->domain == null || $user->domain != null) { return; @@ -117,7 +117,7 @@ class FollowerController extends Controller $payload = [ '@context' => 'https://www.w3.org/ns/activitystreams', - 'id' => $user->permalink('#follow/'.$target->id.''), + 'id' => $user->permalink('#follow/'.$target->id), 'type' => 'Follow', 'actor' => $user->permalink(), 'object' => $target->permalink() @@ -128,7 +128,7 @@ class FollowerController extends Controller Helpers::sendSignedObject($user, $inbox, $payload); } - protected function sendUndoFollow($user, $target) + public function sendUndoFollow($user, $target) { if($target->domain == null || $user->domain != null) { return;