Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Fix occurrance
Browse files Browse the repository at this point in the history
  • Loading branch information
Marttin Notta committed Apr 20, 2021
1 parent 2c7b94f commit ea3fc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getImageSizesAttribute($value)
$sizes = json_decode($value, true) ?? [];

foreach ($sizes as $key => $size) {
$sizes[$key]['url'] = Storage::url($this->path . $size['file_name']);
$sizes[$key]['url'] = $instance->getDisk()->url($this->path . $size['file_name']);
if (config('nova-media-field.webp_enabled', true) && isset($size['webp_name'])) {
$sizes[$key]['webp_url'] = $instance->getDisk()->url($this->path . $size['webp_name']);
}
Expand Down

0 comments on commit ea3fc47

Please sign in to comment.