From c6fe213f934bc5869454fc6d68cbf4d220a607dd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 5 Feb 2023 22:49:32 -0700 Subject: [PATCH] Revert media model change --- app/Media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Media.php b/app/Media.php index 8f9f3a5a7..9b91f42be 100644 --- a/app/Media.php +++ b/app/Media.php @@ -38,7 +38,8 @@ class Media extends Model public function url() { if($this->cdn_url) { - return Storage::disk(config('filesystems.cloud'))->url($this->media_path); + // return Storage::disk(config('filesystems.cloud'))->url($this->media_path); + return $this->cdn_url; } if($this->remote_media && $this->remote_url) {