Merge pull request #4624 from pixelfed/staging

Update ProfileTransformer, fix Mastodon indexable context
This commit is contained in:
daniel 2023-08-27 21:43:38 -06:00 committed by GitHub
commit e286f98762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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