mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Prevented overdownvoting
This commit is contained in:
parent
8f9d991a6c
commit
befb3f69bd
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -344,7 +344,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
|
|||
type = incrementAmount;
|
||||
} else if (row != null && (row.votes > 8 || row.views > 15) && incrementAmount < 0) {
|
||||
//increase the power of this downvote
|
||||
incrementAmount = -10;
|
||||
incrementAmount = -Math.abs(Math.min(10, row.votes + 2 - oldIncrementAmount));
|
||||
type = incrementAmount;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue