Procházet zdrojové kódy

Update ProfileController

Daniel Supernault před 6 roky
rodič
revize
cabd47be0a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Http/Controllers/ProfileController.php

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

@@ -135,7 +135,7 @@ class ProfileController extends Controller
                 return view('profile.private', compact('user'));
                 return view('profile.private', compact('user'));
             }
             }
         }
         }
-        $items = $profile->statuses()->orderBy('created_at', 'desc')->take(10)->get();
+        $items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get();
         return response()->view('atom.user', compact('profile', 'items'))
         return response()->view('atom.user', compact('profile', 'items'))
         ->header('Content-Type', 'application/atom+xml');
         ->header('Content-Type', 'application/atom+xml');
     }
     }