Explorar o código

Update ProfileTransformer

Daniel Supernault %!s(int64=7) %!d(string=hai) anos
pai
achega
bc42a0d1f4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/Transformer/ActivityPub/ProfileTransformer.php

+ 3 - 1
app/Transformer/ActivityPub/ProfileTransformer.php

@@ -16,7 +16,9 @@ class ProfileTransformer extends Fractal\TransformerAbstract
             'https://w3id.org/security/v1',
             [
               "manuallyApprovesFollowers" => "as:manuallyApprovesFollowers",
-              "featured" => 'https://pixelfed.org/ns/featured',
+              "featured" => [
+                "https://pixelfed.org/ns#featured" => ["@type" => "@id"],
+              ]
             ]
           ],
           'id' => $profile->permalink(),