Răsfoiți Sursa

Merge pull request #2592 from pixelfed/staging

Update StatusTransformer, add blurhash
daniel 4 ani în urmă
părinte
comite
ed94041a19
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/Transformer/ActivityPub/StatusTransformer.php

+ 2 - 1
app/Transformer/ActivityPub/StatusTransformer.php

@@ -50,7 +50,8 @@ class StatusTransformer extends Fractal\TransformerAbstract
               'type'      => 'Document',
               'mediaType' => $media->mime,
               'url'       => $media->url(),
-              'name'      => $media->caption
+              'name'      => $media->caption,
+              'blurhash'  => $media->blurhash
             ];
           }),
           'tag' => [],