Browse Source

Update ProfileController

Daniel Supernault 6 years ago
parent
commit
cabd47be0a
1 changed files with 1 additions and 1 deletions
  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'));
             }
         }
-        $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'))
         ->header('Content-Type', 'application/atom+xml');
     }