Update ProfileController, fix rss
This commit is contained in:
parent
5a8b919f25
commit
f3e216dfdc
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ class ProfileController extends Controller
|
|||
return redirect($profile->url());
|
||||
}
|
||||
}
|
||||
$items = $profile->statuses()->whereIn('visibility',['public', 'unlisted'])->orderBy('created_at', 'desc')->take(10)->get();
|
||||
$items = $profile->statuses()->whereHas('media')->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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue