Bläddra i källkod

Update ProfileController

Daniel Supernault 6 år sedan
förälder
incheckning
bf90263259
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Http/Controllers/ProfileController.php

+ 1 - 1
app/Http/Controllers/ProfileController.php

@@ -158,7 +158,7 @@ class ProfileController extends Controller
 
 
     public function showAtomFeed(Request $request, $user)
     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) {
         if($profile->status != null) {
             return $this->accountCheck($profile);
             return $this->accountCheck($profile);
         }
         }