Add NSFW and kid-friendly toggles to upload flows

This commit is contained in:
thePR0M3TH3AN committed 2025-10-09 21:55:05 -04:00
1 parent 002790a01d
commit 1122c702af
4 files changed
+146 -16

No files matched your search

+4
View File
@@ -673,6 +673,8 @@ class R2Service {
const ws = String(metadata.ws || "").trim();
const xs = String(metadata.xs || "").trim();
const enableComments = metadata.enableComments !== false;
const isNsfw = metadata.isNsfw === true;
const isForKids = metadata.isForKids === true;
const accountId = (this.cloudflareSettings?.accountId || "").trim();
const accessKeyId = (this.cloudflareSettings?.accessKeyId || "").trim();
@@ -769,6 +771,8 @@ class R2Service {
ws,
xs,
enableComments,
isNsfw,
isForKids,
};
const mergedNip71 = this.buildNip71MetadataForUpload(metadata?.nip71, {