From 4339a1e106b6c30f5928df9cc76a2a9aa9d4984c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 30 Dec 2022 21:04:28 -0700 Subject: [PATCH] Update StatusStatelessTransformer --- app/Transformer/Api/StatusStatelessTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Transformer/Api/StatusStatelessTransformer.php b/app/Transformer/Api/StatusStatelessTransformer.php index 74aaf7ce..38a3fedf 100644 --- a/app/Transformer/Api/StatusStatelessTransformer.php +++ b/app/Transformer/Api/StatusStatelessTransformer.php @@ -5,6 +5,7 @@ namespace App\Transformer\Api; use App\Status; use League\Fractal; use Cache; +use App\Services\AccountService; use App\Services\HashidService; use App\Services\LikeService; use App\Services\MediaService; @@ -12,7 +13,6 @@ use App\Services\MediaTagService; use App\Services\StatusHashtagService; use App\Services\StatusLabelService; use App\Services\StatusMentionService; -use App\Services\ProfileService; use App\Services\PollService; use App\Models\CustomEmoji; @@ -63,7 +63,7 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract 'label' => StatusLabelService::get($status), 'liked_by' => LikeService::likedBy($status), 'media_attachments' => MediaService::get($status->id), - 'account' => ProfileService::get($status->profile_id), + 'account' => AccountService::get($status->profile_id, true), 'tags' => StatusHashtagService::statusTags($status->id), 'poll' => $poll ];