From eacbc06c3ff6507b9058dc7bdcca6785b248dfae Mon Sep 17 00:00:00 2001 From: Shlee Date: Tue, 17 May 2022 20:18:17 +0930 Subject: [PATCH] Update MediaDraftTransformer.php --- app/Transformer/Api/MediaDraftTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,