Update MediaDraftTransformer.php

This commit is contained in:
Shlee 2022-05-17 20:18:17 +09:30 committed by GitHub
parent cb2e0fee3a
commit eacbc06c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,