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
1 changed files with 1 additions and 1 deletions

View File

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