Update Api MediaTransformer

This commit is contained in:
Daniel Supernault 2018-11-03 21:47:49 -06:00
parent 7b748ecc8a
commit ad47733cf0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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,
];
}
}