Prevent conflicting audience flags in upload forms

This commit is contained in:
thePR0M3TH3AN committed 2025-10-09 22:03:58 -04:00
1 parent 1122c702af
commit d33ca197d7
3 files changed
+79 -7

No files matched your search

+4 -1
View File
@@ -674,7 +674,10 @@ class R2Service {
const xs = String(metadata.xs || "").trim();
const enableComments = metadata.enableComments !== false;
const isNsfw = metadata.isNsfw === true;
const isForKids = metadata.isForKids === true;
const isForKids = metadata.isForKids === true && !isNsfw;
metadata.isNsfw = isNsfw;
metadata.isForKids = isForKids;
const accountId = (this.cloudflareSettings?.accountId || "").trim();
const accessKeyId = (this.cloudflareSettings?.accessKeyId || "").trim();