From d4c347ffa93f6d240babcf8856dafd0aced6611a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Dec 2018 21:51:44 -0700 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 808effa10..e312a2938 100644 --- a/app/Http/Controllers/FollowerController.php +++ b/app/Http/Controllers/FollowerController.php @@ -37,7 +37,7 @@ class FollowerController extends Controller protected function handleFollowRequest($item) { $user = Auth::user()->profile; - $target = Profile::where('id', '!=', $user->id)->findOrFail($item); + $target = Profile::where('id', '!=', $user->id)->whereNull('status')->findOrFail($item); $private = (bool) $target->is_private; $blocked = UserFilter::whereUserId($target->id) ->whereFilterType('block')