mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Api MediaTransformer
This commit is contained in:
parent
7b748ecc8a
commit
ad47733cf0
1 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,12 @@ class MediaTransformer extends Fractal\TransformerAbstract
|
||||||
'preview_url' => $media->thumbnailUrl(),
|
'preview_url' => $media->thumbnailUrl(),
|
||||||
'text_url' => null,
|
'text_url' => null,
|
||||||
'meta' => $media->metadata,
|
'meta' => $media->metadata,
|
||||||
'description' => null,
|
'description' => $media->caption,
|
||||||
|
'license' => $media->license,
|
||||||
|
'is_nsfw' => $media->is_nsfw,
|
||||||
|
'orientation' => $media->orientation,
|
||||||
|
'filter_name' => $media->filter_name,
|
||||||
|
'filter_class' => $media->filter_class,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue