In case the disk does not support visibility for single objects (Storage::disk($this->disk)->getVisibility($this->path)), Curator assumes that the disk must be private.
In my case Cloudflare R2 supports S3, but not file-level visibility. Therefore Curator only generates those signed URLs with the endpoint URL instead of the public bucket URL from the config.
The new introduced logic checks if the disk config has the visibility set to 'public'. Otherwise it defaults to false.
Works great for me, now the correct URL is generated for Media files.
In case the disk does not support visibility for single objects (
Storage::disk($this->disk)->getVisibility($this->path)
), Curator assumes that the disk must be private. In my case Cloudflare R2 supports S3, but not file-level visibility. Therefore Curator only generates those signed URLs with the endpoint URL instead of the public bucket URL from the config.The new introduced logic checks if the disk config has the visibility set to 'public'. Otherwise it defaults to false. Works great for me, now the correct URL is generated for Media files.