From 80ee8a741403c20c1b42bd587e6d0efedfbdbacc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 18 Oct 2024 02:43:09 -0600 Subject: [PATCH] Update AdminModeratedProfileResource --- app/Http/Resources/Admin/AdminModeratedProfileResource.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Resources/Admin/AdminModeratedProfileResource.php b/app/Http/Resources/Admin/AdminModeratedProfileResource.php index fd9bf85d1..47b75496f 100644 --- a/app/Http/Resources/Admin/AdminModeratedProfileResource.php +++ b/app/Http/Resources/Admin/AdminModeratedProfileResource.php @@ -19,7 +19,10 @@ class AdminModeratedProfileResource extends JsonResource $profile = Profile::withTrashed()->find($this->profile_id); if ($profile) { $profileObj = [ + 'name' => $profile->name, 'username' => $profile->username, + 'username_str' => explode('@', $profile->username)[1], + 'remote_url' => $profile->remote_url, ]; }