mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-13 02:14:32 +01:00
Merge pull request #93 from ajayyy/experimental
Remove extra power downvote
This commit is contained in:
commit
adbb176697
1 changed files with 0 additions and 4 deletions
|
@ -166,10 +166,6 @@ module.exports = async function voteOnSponsorTime(req, res) {
|
||||||
//this user is a vip and a downvote
|
//this user is a vip and a downvote
|
||||||
incrementAmount = - (row.votes + 2 - oldIncrementAmount);
|
incrementAmount = - (row.votes + 2 - oldIncrementAmount);
|
||||||
type = incrementAmount;
|
type = incrementAmount;
|
||||||
} else if (row !== undefined && (row.votes > 8 || row.views > 15) && incrementAmount < 0) {
|
|
||||||
//increase the power of this downvote
|
|
||||||
incrementAmount = -Math.abs(Math.min(10, row.votes + 2 - oldIncrementAmount));
|
|
||||||
type = incrementAmount;
|
|
||||||
}
|
}
|
||||||
} else if (voteTypeEnum == voteTypes.incorrect) {
|
} else if (voteTypeEnum == voteTypes.incorrect) {
|
||||||
if (isVIP) {
|
if (isVIP) {
|
||||||
|
|
Loading…
Reference in a new issue