mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Improved VIP downvote calculation.
This commit is contained in:
parent
d5a679731c
commit
efc32f8e3a
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -340,7 +340,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) {
|
|||
db.prepare("SELECT votes, views FROM sponsorTimes WHERE UUID = ?").get(UUID, async function(err, row) {
|
||||
if (vipResult.row.userCount != 0 && incrementAmount < 0) {
|
||||
//this user is a vip and a downvote
|
||||
incrementAmount = -Math.min(350, Math.floor(row.votes + 2));
|
||||
incrementAmount = -Math.min(350, row.votes + 2 - oldIncrementAmount);
|
||||
type = incrementAmount;
|
||||
} else if (row != null && (row.votes > 8 || row.views > 15) && incrementAmount < 0) {
|
||||
//increase the power of this downvote
|
||||
|
|
Loading…
Reference in a new issue