Skip to content

Commit

Permalink
Only uploaded warned info for upvotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Oct 27, 2024
1 parent e9c0c44 commit 93f7161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/postBranding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": [{
Expand Down

0 comments on commit 93f7161

Please sign in to comment.