From ad47733cf051cd3faba69fd40e1057b8fe6ca6dc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 3 Nov 2018 21:47:49 -0600 Subject: [PATCH] Update Api MediaTransformer --- app/Transformer/Api/MediaTransformer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Transformer/Api/MediaTransformer.php b/app/Transformer/Api/MediaTransformer.php index a4f76a9e..76c3d4bb 100644 --- a/app/Transformer/Api/MediaTransformer.php +++ b/app/Transformer/Api/MediaTransformer.php @@ -17,7 +17,12 @@ class MediaTransformer extends Fractal\TransformerAbstract 'preview_url' => $media->thumbnailUrl(), 'text_url' => null, 'meta' => $media->metadata, - 'description' => null, + 'description' => $media->caption, + 'license' => $media->license, + 'is_nsfw' => $media->is_nsfw, + 'orientation' => $media->orientation, + 'filter_name' => $media->filter_name, + 'filter_class' => $media->filter_class, ]; } }