Browse Source

Update ProfileTransformer, fix Mastodon indexable context

Daniel Supernault 1 year ago
parent
commit
83900a3b00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Transformer/ActivityPub/ProfileTransformer.php

+ 2 - 2
app/Transformer/ActivityPub/ProfileTransformer.php

@@ -15,7 +15,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
             'https://w3id.org/security/v1',
             'https://w3id.org/security/v1',
             'https://www.w3.org/ns/activitystreams',
             'https://www.w3.org/ns/activitystreams',
             [
             [
-              'pixelfed' => 'http://pixelfed.org/ns#',
+              'toot' => 'http://joinmastodon.org/ns#',
               'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
               'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
               'alsoKnownAs' => [
               'alsoKnownAs' => [
                     '@id' => 'as:alsoKnownAs',
                     '@id' => 'as:alsoKnownAs',
@@ -25,7 +25,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
                     '@id' => 'as:movedTo',
                     '@id' => 'as:movedTo',
                     '@type' => '@id'
                     '@type' => '@id'
               ],
               ],
-              'indexable' => 'pixelfed:indexable',
+              'indexable' => 'toot:indexable',
             ],
             ],
           ],
           ],
           'id'                        => $profile->permalink(),
           'id'                        => $profile->permalink(),