From bf90263259222b5d686f492d895b3386f0057828 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 11 Mar 2019 03:05:15 -0600 Subject: [PATCH] Update ProfileController --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 3580fb6ac..3d256e0c1 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -158,7 +158,7 @@ class ProfileController extends Controller public function showAtomFeed(Request $request, $user) { - $profile = $user = Profile::whereUsername($user)->firstOrFail(); + $profile = $user = Profile::whereNull('status')->whereNull('domain')->whereUsername($user)->whereIsPrivate(false)->firstOrFail(); if($profile->status != null) { return $this->accountCheck($profile); }