From d2a8c03ab4fd065c8b844202c6e18d09c77e2db9 Mon Sep 17 00:00:00 2001 From: Anthony Clark Date: Thu, 2 May 2024 08:50:29 -0700 Subject: [PATCH] Fix API image URL --- app/Http/Resources/ThemePromptArtworkResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/ThemePromptArtworkResource.php b/app/Http/Resources/ThemePromptArtworkResource.php index 6033064c..07d224bc 100644 --- a/app/Http/Resources/ThemePromptArtworkResource.php +++ b/app/Http/Resources/ThemePromptArtworkResource.php @@ -97,7 +97,7 @@ private function getApiImages(Artwork $artwork): array 'img_medium' => static::IMAGE_SIZES['medium'], 'img_large' => static::IMAGE_SIZES['large'], ])->map(fn ($size) => [ - 'url' => $this->getApiImageUrl($artwork->id, $size), + 'url' => $this->getApiImageUrl($artwork->image_id, $size), ...$this->getDimensions( $artwork->thumbnail->width, $artwork->thumbnail->height,