From 107cc4672f1ff04d58012838486cffbcad95c142 Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Sat, 6 Jun 2026 20:08:35 -0700 Subject: [PATCH] upload: fix license selection --- js/app/src/screens/upload.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/app/src/screens/upload.tsx b/js/app/src/screens/upload.tsx index 743395e6..50a10d9b 100644 --- a/js/app/src/screens/upload.tsx +++ b/js/app/src/screens/upload.tsx @@ -407,12 +407,10 @@ export default function UploadScreen() { license && license !== "place.stream.metadata.contentRights#all-rights-reserved" ) { - const licenseKey = license.split("#")[1]; record.contentRights = { $type: "place.stream.metadata.contentRights", - license: { $type: license } as any, - [licenseKey]: { $type: license } as any, - } as any; + license: license, + }; } if (thumbnail) { @@ -554,11 +552,9 @@ export default function UploadScreen() { license && license !== "place.stream.metadata.contentRights#all-rights-reserved" ) { - const licenseKey = license.split("#")[1]; record.contentRights = { $type: "place.stream.metadata.contentRights", - license: { $type: license }, - [licenseKey]: { $type: license }, + license: license, }; } if (thumbnail) { -- 2.51.2