From c248c9d73741e6da70c5a8967677778d0a4af833 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Sep 2018 23:25:06 -0600 Subject: [PATCH] Update FollowerController --- app/Http/Controllers/FollowerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/FollowerController.php b/app/Http/Controllers/FollowerController.php index 15709cd9..a487ac07 100644 --- a/app/Http/Controllers/FollowerController.php +++ b/app/Http/Controllers/FollowerController.php @@ -33,7 +33,7 @@ class FollowerController extends Controller $private = (bool) $target->is_private; $isFollowing = Follower::whereProfileId($user->id)->whereFollowingId($target->id)->count(); - if($private == true) { + if($private == true && $isFollowing == 0) { $follow = new FollowRequest; $follow->follower_id = $user->id; $follow->following_id = $target->id;