Use meta bucket in R2 bucket resolution

This commit is contained in:
thePR0M3TH3AN committed 2026-01-26 07:35:34 -05:00
1 parent 88c9041716
commit ad0f58e328
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) {