1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-22 14:59:33 +00:00

Update FollowerController

This commit is contained in:
Daniel Supernault 2018-12-23 21:51:44 -07:00
parent de49171027
commit d4c347ffa9
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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