mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 23:17:02 +03:00
Fixed double downvote issue.
This commit is contained in:
2
index.js
2
index.js
@@ -322,7 +322,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
|
|||||||
} else if (votesRow.type == 0) {
|
} else if (votesRow.type == 0) {
|
||||||
//downvote
|
//downvote
|
||||||
oldIncrementAmount = -1;
|
oldIncrementAmount = -1;
|
||||||
} else if (votesRow.type == 1) {
|
} else if (votesRow.type == 2) {
|
||||||
//extra downvote
|
//extra downvote
|
||||||
oldIncrementAmount = -4;
|
oldIncrementAmount = -4;
|
||||||
} else if (votesRow.type <= -25) {
|
} else if (votesRow.type <= -25) {
|
||||||
|
|||||||
Reference in New Issue
Block a user