forked from mirror/pixelfed
Update FollowerController
This commit is contained in:
parent
de49171027
commit
d4c347ffa9
|
@ -37,7 +37,7 @@ class FollowerController extends Controller
|
||||||
protected function handleFollowRequest($item)
|
protected function handleFollowRequest($item)
|
||||||
{
|
{
|
||||||
$user = Auth::user()->profile;
|
$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;
|
$private = (bool) $target->is_private;
|
||||||
$blocked = UserFilter::whereUserId($target->id)
|
$blocked = UserFilter::whereUserId($target->id)
|
||||||
->whereFilterType('block')
|
->whereFilterType('block')
|
||||||
|
|
Loading…
Reference in New Issue