From aac80e569f1dd0dfe4cab118ef3705c344515aa2 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 2 Jun 2026 22:59:33 +0700 Subject: [PATCH] perf(discord-gateway): parallelize all media downloads into single Promise.all batch --- .../src/modules/ai-moderation/llmModerationClient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/discord-gateway/src/modules/ai-moderation/llmModerationClient.ts b/services/discord-gateway/src/modules/ai-moderation/llmModerationClient.ts index 4cd25ae..b1ad72e 100644 --- a/services/discord-gateway/src/modules/ai-moderation/llmModerationClient.ts +++ b/services/discord-gateway/src/modules/ai-moderation/llmModerationClient.ts @@ -1093,6 +1093,7 @@ async function _runSingleMediaAnalysis( att.uploaded_url ?? null; const maxDimension = config.AI_LLM_IMAGE_MAX_DIMENSION ?? 1024; + const content = target.edited_content ?? target.content; // ── 1-3. Parallel download of ALL media sources ── // Build all download promises upfront and execute them in one Promise.all.