浏览代码

Update ProfileTransformer

Daniel Supernault 7 年之前
父节点
当前提交
bc42a0d1f4
共有 1 个文件被更改,包括 3 次插入1 次删除
  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(),