NOW MANAGED ON CODEBERG
shorter amazon S3 url
Younes El Biacheec30864ce5ec
diff --git a/app/Services/ImageService.php b/app/Services/ImageService.phpindex dd965c90f..331a407c3 100644--- a/app/Services/ImageService.php+++ b/app/Services/ImageService.php@@ -259,7 +259,7 @@ class ImageService// Get the standard public s3 url if s3 is set as storage typeif ($storageUrl == false && config('filesystems.default') === 's3') {$storageDetails = config('filesystems.disks.s3');- $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'];+ $storageUrl = 'https://' . $storageDetails['bucket'] . '.s3.amazonaws.com';}$this->storageUrl = $storageUrl;@@ -269,4 +269,4 @@ class ImageService}-}\ No newline at end of file+}