mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-30 10:13:16 +00:00
Merge pull request #433 from pixelfed/frontend-ui-refactor
Update FollowerController
This commit is contained in:
commit
5c38565135
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class FollowerController extends Controller
|
||||||
$private = (bool) $target->is_private;
|
$private = (bool) $target->is_private;
|
||||||
$isFollowing = Follower::whereProfileId($user->id)->whereFollowingId($target->id)->count();
|
$isFollowing = Follower::whereProfileId($user->id)->whereFollowingId($target->id)->count();
|
||||||
|
|
||||||
if($private == true) {
|
if($private == true && $isFollowing == 0) {
|
||||||
$follow = new FollowRequest;
|
$follow = new FollowRequest;
|
||||||
$follow->follower_id = $user->id;
|
$follow->follower_id = $user->id;
|
||||||
$follow->following_id = $target->id;
|
$follow->following_id = $target->id;
|
||||||
|
|
Loading…
Reference in a new issue