forked from mirror/pixelfed
Update ProfileController
This commit is contained in:
parent
9aec7ad8ea
commit
c80d4928ce
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ class ProfileController extends Controller
|
||||||
$blocked = $this->blockedProfileCheck($profile);
|
$blocked = $this->blockedProfileCheck($profile);
|
||||||
$check = $this->privateProfileCheck($profile, null);
|
$check = $this->privateProfileCheck($profile, null);
|
||||||
if($check || $blocked) {
|
if($check || $blocked) {
|
||||||
return view('profile.private', compact('user'));
|
return view('profile.private', compact('user', 'is_following'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$followers = $profile->followers()->orderBy('created_at', 'desc')->simplePaginate(12);
|
$followers = $profile->followers()->orderBy('created_at', 'desc')->simplePaginate(12);
|
||||||
|
@ -176,7 +176,7 @@ class ProfileController extends Controller
|
||||||
$blocked = $this->blockedProfileCheck($profile);
|
$blocked = $this->blockedProfileCheck($profile);
|
||||||
$check = $this->privateProfileCheck($profile, null);
|
$check = $this->privateProfileCheck($profile, null);
|
||||||
if($check || $blocked) {
|
if($check || $blocked) {
|
||||||
return view('profile.private', compact('user'));
|
return view('profile.private', compact('user', 'is_following'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$following = $profile->following()->orderBy('created_at', 'desc')->simplePaginate(12);
|
$following = $profile->following()->orderBy('created_at', 'desc')->simplePaginate(12);
|
||||||
|
|
Loading…
Reference in a new issue