From 75d16ad99c4799fa8233e20176bf28cf3dbcf97f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 12 Dec 2018 14:25:27 -0700 Subject: [PATCH] Update AP Note verb transformer --- app/Transformer/ActivityPub/Verb/CreateNote.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/Transformer/ActivityPub/Verb/CreateNote.php b/app/Transformer/ActivityPub/Verb/CreateNote.php index b8d3a9a17..49aed880a 100644 --- a/app/Transformer/ActivityPub/Verb/CreateNote.php +++ b/app/Transformer/ActivityPub/Verb/CreateNote.php @@ -30,12 +30,6 @@ class CreateNote extends Fractal\TransformerAbstract '@context' => [ 'https://www.w3.org/ns/activitystreams', 'https://w3id.org/security/v1', - [ - 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers', - 'featured' => [ - 'https://pixelfed.org/ns#featured' => ['@type' => '@id'], - ], - ], ], 'id' => $status->permalink(), 'type' => 'Create', @@ -57,7 +51,7 @@ class CreateNote extends Fractal\TransformerAbstract 'sensitive' => (bool) $status->is_nsfw, 'attachment' => $status->media->map(function ($media) { return [ - 'type' => 'Document', + 'type' => $media->activityVerb(), 'mediaType' => $media->mime, 'url' => $media->url(), 'name' => null,