mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 07:42:41 +00:00
Update AdminModeratedProfileResource
This commit is contained in:
parent
6fc2dd07d4
commit
dcddc72c86
1 changed files with 3 additions and 2 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace App\Http\Resources\Admin;
|
||||
|
||||
use App\Profile;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use App\Profile;
|
||||
|
||||
class AdminModeratedProfileResource extends JsonResource
|
||||
{
|
||||
|
@ -17,11 +17,12 @@ class AdminModeratedProfileResource extends JsonResource
|
|||
{
|
||||
$profileObj = [];
|
||||
$profile = Profile::withTrashed()->find($this->profile_id);
|
||||
if($profile) {
|
||||
if ($profile) {
|
||||
$profileObj = [
|
||||
'username' => $profile->username,
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'domain' => $this->domain,
|
||||
|
|
Loading…
Reference in a new issue