From 7c6cff31034bbb68ca95b84d8a47cdfe1cbe0045 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 24 Jul 2021 23:24:56 -0600 Subject: [PATCH] Update StatusTransformer --- .../Api/Mastodon/v1/StatusTransformer.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php index 43ebccc5d..6b4177384 100644 --- a/app/Transformer/Api/Mastodon/v1/StatusTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/StatusTransformer.php @@ -11,10 +11,6 @@ use App\Services\StatusHashtagService; class StatusTransformer extends Fractal\TransformerAbstract { - protected $defaultIncludes = [ - 'mentions', - ]; - public function transform(Status $status) { return [ @@ -49,14 +45,7 @@ class StatusTransformer extends Fractal\TransformerAbstract 'poll' => null, 'media_attachments' => MediaService::get($status->id), 'account' => ProfileService::get($status->profile_id), - 'tags' => StatusHashtagService::statusTags($status->id) + 'tags' => StatusHashtagService::statusTags($status->id), ]; } - - public function includeMentions(Status $status) - { - $mentions = $status->mentions; - - return $this->collection($mentions, new MentionTransformer()); - } }