浏览代码

Update MediaTransformer, fix type case bug. Fixes #3281

Daniel Supernault 3 年之前
父节点
当前提交
c166925319
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Transformer/Api/MediaTransformer.php

+ 1 - 1
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(),