diff --git a/app/Transformer/Api/MediaDraftTransformer.php b/app/Transformer/Api/MediaDraftTransformer.php index 1f6c578c..06201db7 100644 --- a/app/Transformer/Api/MediaDraftTransformer.php +++ b/app/Transformer/Api/MediaDraftTransformer.php @@ -13,9 +13,9 @@ class MediaDraftTransformer extends Fractal\TransformerAbstract return [ 'id' => (string) $media->id, 'type' => $media->activityVerb(), - 'url' => $url, + 'url' => $media->url(), 'remote_url' => null, - 'preview_url' => $url, + 'preview_url' => $media->thumbnailUrl(), 'text_url' => null, 'meta' => null, 'description' => $media->caption,