From 93f716172403330023c8e50faf7d75e5156ce37d Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 27 Oct 2024 02:17:34 -0400 Subject: [PATCH] Only uploaded warned info for upvotes --- src/routes/postBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postBranding.ts b/src/routes/postBranding.ts index 5c89fa2..178db6e 100644 --- a/src/routes/postBranding.ts +++ b/src/routes/postBranding.ts @@ -319,7 +319,7 @@ async function sendWebhooks(videoID: VideoID, UUID: BrandingUUID, voteType: Bran WHERE "titles"."UUID" = ?`, [UUID]); - if (wasWarned) { + if (wasWarned && voteType === BrandingVoteType.Upvote) { const data = await getVideoDetails(videoID); axios.post(config.discordDeArrowWarnedWebhookURL, { "embeds": [{