1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #3485 from shleeable/patch-20

Update MediaDraftTransformer.php
This commit is contained in:
daniel 2022-05-20 23:33:22 -06:00 committed by GitHub
commit ccc219bf55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,