Update FollowerController

pull/666/head
Daniel Supernault 6 years ago
parent de49171027
commit d4c347ffa9
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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')

Loading…
Cancel
Save