From 3570e7acbb790f6bb7e8e431800e2f130c0165fc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 26 Sep 2019 22:42:33 -0600 Subject: [PATCH] Update api controller --- app/Http/Controllers/Api/ApiV1Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 0c945ee17..535c0cb87 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1315,7 +1315,8 @@ class ApiV1Controller extends Controller 'place_id', 'created_at', 'updated_at' - )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + )->whereNull('uri') + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) ->with('profile', 'hashtags', 'mentions') ->where('id', $dir, $id) ->whereVisibility('public') @@ -1340,7 +1341,8 @@ class ApiV1Controller extends Controller 'place_id', 'created_at', 'updated_at' - )->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) + )->whereNull('uri') + ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album']) ->with('profile', 'hashtags', 'mentions') ->whereVisibility('public') ->latest()