diff --git a/app/Media.php b/app/Media.php index fd507e7f1..79e399ea1 100644 --- a/app/Media.php +++ b/app/Media.php @@ -23,7 +23,7 @@ class Media extends Model $url = $this->remote_url; } else { $path = $this->media_path; - $url = Storage::url($path); + $url = $this->cdn_url ?? Storage::url($path); } return url($url);