mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Raised per user sponsor limit to 8
This commit is contained in:
2
index.js
2
index.js
@@ -137,7 +137,7 @@ app.get('/api/postVideoSponsorTimes', function (req, res) {
|
|||||||
} else {
|
} else {
|
||||||
//check to see if the user has already submitted sponsors for this video
|
//check to see if the user has already submitted sponsors for this video
|
||||||
db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID], function(err, row) {
|
db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID], function(err, row) {
|
||||||
if (row.count >= 4) {
|
if (row.count >= 8) {
|
||||||
//too many sponsors for the same video from the same user
|
//too many sponsors for the same video from the same user
|
||||||
res.sendStatus(429);
|
res.sendStatus(429);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user