mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-24 00:18:23 +03:00
Only uploaded warned info for upvotes
This commit is contained in:
@@ -319,7 +319,7 @@ async function sendWebhooks(videoID: VideoID, UUID: BrandingUUID, voteType: Bran
|
|||||||
WHERE "titles"."UUID" = ?`,
|
WHERE "titles"."UUID" = ?`,
|
||||||
[UUID]);
|
[UUID]);
|
||||||
|
|
||||||
if (wasWarned) {
|
if (wasWarned && voteType === BrandingVoteType.Upvote) {
|
||||||
const data = await getVideoDetails(videoID);
|
const data = await getVideoDetails(videoID);
|
||||||
axios.post(config.discordDeArrowWarnedWebhookURL, {
|
axios.post(config.discordDeArrowWarnedWebhookURL, {
|
||||||
"embeds": [{
|
"embeds": [{
|
||||||
|
|||||||
Reference in New Issue
Block a user