Merge pull request #1726 from PR0M3TH3AN/codex/update-bucket-usage-in-r2service.js

Use meta.bucket when resolving R2 uploads
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-26 07:35:52 -05:00
commit 80ac1f1d5c
1 file changed
+2 -1
+2 -1
View File
@@ -475,7 +475,8 @@ class R2Service {
// We no longer support automated bucket creation or domain management via API token.
// We assume the user has created the bucket with the correct name and configured the public domain.
const bucketName = settings.bucket || sanitizeBucketName(npub);
const bucketName =
settings.bucket || settings.meta?.bucket || sanitizeBucketName(npub);
// We attempt to ensure the bucket exists and CORS is set up using the S3 keys if possible.
if (accessKeyId && secretAccessKey) {