|
@@ -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);
|
|
|
}
|