From c166925319e7d5ee9854a733c4a5126f08df073d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 2 Mar 2022 01:05:36 -0700 Subject: [PATCH] Update MediaTransformer, fix type case bug. Fixes #3281 --- app/Transformer/Api/MediaTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/MediaTransformer.php b/app/Transformer/Api/MediaTransformer.php index 21c0b25b5..0a4600bae 100644 --- a/app/Transformer/Api/MediaTransformer.php +++ b/app/Transformer/Api/MediaTransformer.php @@ -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(),