mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Refactor R2 key prefix for deterministic identifiers
This commit is contained in:
1 parent
00b0e85438
commit
c02db755ac
6 files changed
+42
-12
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user