mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update ApiV1Controller, remove no-preview image from media urls
This commit is contained in:
parent
d82ffa223c
commit
37dfb1014f
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue