Explorar o código

Update MediaTransformer, remove cache busting

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
258b2729d3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Transformer/Api/MediaTransformer.php

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

@@ -12,9 +12,9 @@ class MediaTransformer extends Fractal\TransformerAbstract
         $res = [
             'id'            => (string) $media->id,
             'type'          => $media->activityVerb(),
-            'url'           => $media->url() . '?cb=1&_v=' . time(),
+            'url'           => $media->url(),
             'remote_url'    => null,
-            'preview_url'   => $media->thumbnailUrl() . '?cb=1&_v=' . time(),
+            'preview_url'   => $media->thumbnailUrl(),
             'text_url'      => null,
             'meta'          => null,
             'description'   => $media->caption,