From 73740bc920c922c1dfd10b5ab0ffb7e3d9c24c40 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 25 May 2020 22:50:18 -0400 Subject: [PATCH] Remove submission cap --- src/routes/postSkipSegments.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index c20bb24..ffbe767 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -197,14 +197,17 @@ module.exports = async function postSkipSegments(req, res) { } } - //check to see if the user has already submitted sponsors for this video - let duplicateCheckRow = db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID]); - - if (duplicateCheckRow.count >= 16) { - //too many sponsors for the same video from the same user - res.sendStatus(429); + // Disable max submissions for now + if (false) { + //check to see if the user has already submitted sponsors for this video + let duplicateCheckRow = db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID]); + + if (duplicateCheckRow.count >= 16) { + //too many sponsors for the same video from the same user + res.sendStatus(429); - return; + return; + } } //check to see if this user is shadowbanned