Skip to content

Commit

Permalink
Fix API image URL
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed May 2, 2024
1 parent 84291ca commit d2a8c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/ThemePromptArtworkResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d2a8c03

Please sign in to comment.