mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 00:05:29 +00:00
Merge pull request #3485 from shleeable/patch-20
Update MediaDraftTransformer.php
This commit is contained in:
commit
ccc219bf55
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