From 7fcb1186d911109524feb52b7ba4ce77030554fc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 01:07:39 -0700 Subject: [PATCH] Update Status Model --- app/Status.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Status.php b/app/Status.php index 73b343825..6bb363471 100644 --- a/app/Status.php +++ b/app/Status.php @@ -118,7 +118,11 @@ class Status extends Model $media = $this->firstMedia(); $path = $media->media_path; $hash = is_null($media->processed_at) ? md5('unprocessed') : md5($media->created_at); - $url = Storage::url($path)."?v={$hash}"; + if(config('pixelfed.cloud_storage') == true) { + $url = Storage::disk(config('filesystems.cloud'))->url($path)."?v={$hash}"; + } else { + $url = Storage::url($path)."?v={$hash}"; + } return url($url); }