mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update MediaDraftTransformer.php
This commit is contained in:
parent
cb2e0fee3a
commit
eacbc06c3f
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ class MediaDraftTransformer extends Fractal\TransformerAbstract
|
||||||
return [
|
return [
|
||||||
'id' => (string) $media->id,
|
'id' => (string) $media->id,
|
||||||
'type' => $media->activityVerb(),
|
'type' => $media->activityVerb(),
|
||||||
'url' => $url,
|
'url' => $media->url(),
|
||||||
'remote_url' => null,
|
'remote_url' => null,
|
||||||
'preview_url' => $url,
|
'preview_url' => $media->thumbnailUrl(),
|
||||||
'text_url' => null,
|
'text_url' => null,
|
||||||
'meta' => null,
|
'meta' => null,
|
||||||
'description' => $media->caption,
|
'description' => $media->caption,
|
||||||
|
|
Loading…
Reference in a new issue