浏览代码

Update ProfileTransformer

Daniel Supernault 6 年之前
父节点
当前提交
c7e030cb30
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      app/Transformer/ActivityPub/ProfileTransformer.php

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

@@ -15,9 +15,6 @@ class ProfileTransformer extends Fractal\TransformerAbstract
             'https://w3id.org/security/v1',
             'https://w3id.org/security/v1',
             [
             [
               'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
               'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
-              'featured'                  => [
-                'https://pixelfed.org/ns#featured' => ['@type' => '@id'],
-              ],
             ],
             ],
           ],
           ],
           'id'                        => $profile->permalink(),
           'id'                        => $profile->permalink(),
@@ -26,7 +23,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
           'followers'                 => $profile->permalink('/followers'),
           'followers'                 => $profile->permalink('/followers'),
           'inbox'                     => $profile->permalink('/inbox'),
           'inbox'                     => $profile->permalink('/inbox'),
           'outbox'                    => $profile->permalink('/outbox'),
           'outbox'                    => $profile->permalink('/outbox'),
-          'featured'                  => $profile->permalink('/collections/featured'),
+          //'featured'                  => $profile->permalink('/collections/featured'),
           'preferredUsername'         => $profile->username,
           'preferredUsername'         => $profile->username,
           'name'                      => $profile->name,
           'name'                      => $profile->name,
           'summary'                   => $profile->bio,
           'summary'                   => $profile->bio,