mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
fix(nip71): keep upload mirrors in sync
This commit is contained in:
1 parent
f0a3ede3e5
commit
e8e2b04de7
12 files changed
+325
-82
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user