Explorar el Código

Update MediaTransformer

Daniel Supernault hace 6 años
padre
commit
d0d4def3ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Transformer/Api/MediaTransformer.php

+ 1 - 1
app/Transformer/Api/MediaTransformer.php

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