Skip to content

NOW MANAGED ON CODEBERG

Fixed bad s3 stock url creation

Dan Brown32d5b12d279c
diff --git a/app/Repos/ImageRepo.php b/app/Repos/ImageRepo.php
index 3dce7e94b..2699b9e97 100644
--- a/app/Repos/ImageRepo.php
+++ b/app/Repos/ImageRepo.php
@@ -237,7 +237,7 @@ class ImageRepo
// Get the standard public s3 url if s3 is set as storage type
if ($storageUrl == false && env('STORAGE_TYPE') === 's3') {
$storageDetails = config('filesystems.disks.s3');
- $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'] . $filePath;
+ $storageUrl = 'https://s3-' . $storageDetails['region'] . '.amazonaws.com/' . $storageDetails['bucket'];
}
$this->storageUrl = $storageUrl;