فهرست منبع

Update StatusTransformer, add blurhash

Daniel Supernault 4 سال پیش
والد
کامیت
23db9de870
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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',
               'type'      => 'Document',
               'mediaType' => $media->mime,
               'mediaType' => $media->mime,
               'url'       => $media->url(),
               'url'       => $media->url(),
-              'name'      => $media->caption
+              'name'      => $media->caption,
+              'blurhash'  => $media->blurhash
             ];
             ];
           }),
           }),
           'tag' => [],
           'tag' => [],