Update PublicApiController

This commit is contained in:
Daniel Supernault 2019-02-11 17:39:03 -07:00
parent 4f46f39f1e
commit f3c16ceacb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -400,7 +400,7 @@ class PublicApiController extends Controller
$only_media = $request->only_media ?? false; $only_media = $request->only_media ?? false;
$user = Auth::user(); $user = Auth::user();
$account = Profile::findOrFail($id); $account = Profile::findOrFail($id);
$statuses = $account->statuses()->getQuery(); $statuses = $account->statuses()->getQuery()->whereNull('uri');
if($only_media == true) { if($only_media == true) {
$statuses = $statuses $statuses = $statuses
->whereHas('media') ->whereHas('media')