fix(nip71): keep upload mirrors in sync

This commit is contained in:
thePR0M3TH3AN committed 2026-07-26 12:51:00 -04:00
1 parent f0a3ede3e5
commit e8e2b04de7
12 files changed
+325 -82

No files matched your search

+5
View File
@@ -459,6 +459,11 @@ export function normalizeVideoNotePayload(input) {
const publishPayload = {
legacyFormData,
// This is publish-session control metadata, not canonical video content.
// Keep it outside legacyFormData so it is never serialized into the 30078
// event, but preserve the uploader's explicit NIP-71 opt-out for the
// post-publish mirror hook.
mirrorNip71: rawPayload.mirrorNip71 !== false,
};
if (normalizedNip71) {