Update ProfileController

This commit is contained in:
Daniel Supernault 2018-09-08 21:19:42 -06:00
parent 43e36b45b2
commit cabd47be0a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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