Update MediaTransformer, fix type case bug. Fixes #3281

This commit is contained in:
Daniel Supernault 2022-03-02 01:05:36 -07:00
parent 5e25689ec2
commit c166925319
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -11,7 +11,7 @@ class MediaTransformer extends Fractal\TransformerAbstract
{
$res = [
'id' => (string) $media->id,
'type' => $media->activityVerb(),
'type' => strtolower($media->activityVerb()),
'url' => $media->url(),
'remote_url' => null,
'preview_url' => $media->thumbnailUrl(),