fix: add missing sanitization for workflow JSON in video node

The workflow JSON sent to Discord was not being sanitized for webhook URLs
and GitHub tokens. This fix adds the missing sanitize_json_for_export call.
This commit is contained in:
AEmotionStudio
2026-02-03 07:08:50 -08:00
parent 519e6025a8
commit 52004b753d
+2
View File
@@ -963,6 +963,8 @@ class DiscordSendSaveVideo(BaseDiscordNode):
if send_workflow_json:
wflow = self.extract_workflow_from_metadata(original_prompt, original_extra_pnginfo)
if wflow:
# Sanitize to remove webhook URLs and tokens
wflow = sanitize_json_for_export(wflow)
json_filename = f"{uuid4()}.json"
json_data = json.dumps(wflow, indent=2).encode('utf-8')
files["workflow"] = (json_filename, json_data)