From 37dfb1014fe0926468f0c7f15f667ef8f5b0a1f1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 30 Mar 2022 20:51:35 -0600 Subject: [PATCH] Update ApiV1Controller, remove no-preview image from media urls --- app/Http/Controllers/Api/ApiV1Controller.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index ccc9d6025..03f7d53f9 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1448,8 +1448,6 @@ class ApiV1Controller extends Controller $resource = new Fractal\Resource\Item($media, new MediaTransformer()); $res = $this->fractal->createData($resource)->toArray(); - $res['preview_url'] = url('/storage/no-preview.png'); - $res['url'] = url('/storage/no-preview.png'); return $this->json($res); } @@ -1472,8 +1470,6 @@ class ApiV1Controller extends Controller $resource = new Fractal\Resource\Item($media, new MediaTransformer()); $res = $this->fractal->createData($resource)->toArray(); - $res['preview_url'] = url('/storage/no-preview.png'); - $res['url'] = url('/storage/no-preview.png'); return $this->json($res); }