This commit is contained in:
Ajay Ramachandran
2020-05-25 22:50:39 -04:00

View File

@@ -197,6 +197,8 @@ module.exports = async function postSkipSegments(req, res) {
} }
} }
// Disable max submissions for now
if (false) {
//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
let duplicateCheckRow = db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID]); let duplicateCheckRow = db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID]);
@@ -206,6 +208,7 @@ module.exports = async function postSkipSegments(req, res) {
return; return;
} }
}
//check to see if this user is shadowbanned //check to see if this user is shadowbanned
let shadowBanRow = privateDB.prepare("SELECT count(*) as userCount FROM shadowBannedUsers WHERE userID = ?").get(userID); let shadowBanRow = privateDB.prepare("SELECT count(*) as userCount FROM shadowBannedUsers WHERE userID = ?").get(userID);