Refactor R2 key prefix for deterministic identifiers

This commit is contained in:
thePR0M3TH3AN committed 2026-01-26 12:47:05 -05:00
1 parent 00b0e85438
commit c02db755ac
6 files changed
+42 -12

No files matched your search

+3 -1
View File
@@ -8914,7 +8914,9 @@ export class ProfileModalController {
return;
}
const key = buildR2Key(pubkey, file);
const keyIdentifier =
type === "picture" ? "profile-picture" : "profile-banner";
const key = buildR2Key(pubkey, file, keyIdentifier);
await r2Service.uploadFile({
file,
...credentials,