Update AdminModeratedProfileResource

This commit is contained in:
Daniel Supernault 2024-10-18 02:43:09 -06:00
parent c0478f5f8f
commit 80ee8a7414
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -19,7 +19,10 @@ class AdminModeratedProfileResource extends JsonResource
$profile = Profile::withTrashed()->find($this->profile_id); $profile = Profile::withTrashed()->find($this->profile_id);
if ($profile) { if ($profile) {
$profileObj = [ $profileObj = [
'name' => $profile->name,
'username' => $profile->username, 'username' => $profile->username,
'username_str' => explode('@', $profile->username)[1],
'remote_url' => $profile->remote_url,
]; ];
} }