From 60ecce23a7c4165463bd44014f19f996748d774a Mon Sep 17 00:00:00 2001 From: ltuffery <123221865+ltuffery@users.noreply.github.com> Date: Thu, 15 May 2025 16:01:38 +0200 Subject: [PATCH] fix: photo request returning object instead of array --- api/src/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Model/User.php b/api/src/Model/User.php index 2253ff9..173b9f6 100644 --- a/api/src/Model/User.php +++ b/api/src/Model/User.php @@ -101,7 +101,7 @@ public function getAvatar(): ?string return null; } - return "http://" . (getenv('APP_HOST') ?? 'localhost') . ":3000/medias/p/" . $photo[0]->name; + return "http://" . (getenv('APP_HOST') ?? 'localhost') . ":3000/medias/p/" . $photo->name; } /**