1
0
Fork 0

Update FollowerController

This commit is contained in:
Daniel Supernault 2018-09-01 23:25:06 -06:00
parent 77d4e45729
commit c248c9d737
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -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;