Allow self-upvotes on dead submissions

This commit is contained in:
Ajay Ramachandran 2020-08-24 20:21:39 -04:00
parent f4b36867ff
commit f7bde024cb

View file

@ -116,7 +116,7 @@ async function voteOnSponsorTime(req, res) {
return categoryVote(UUID, userID, isVIP, category, hashedIP, res); return categoryVote(UUID, userID, isVIP, category, hashedIP, res);
} }
if (type == 1 && !isVIP) { if (type == 1 && !isVIP && !isOwnSubmission) {
// Check if upvoting hidden segment // Check if upvoting hidden segment
let voteInfo = db.prepare('get', "SELECT votes FROM sponsorTimes WHERE UUID = ?", [UUID]); let voteInfo = db.prepare('get', "SELECT votes FROM sponsorTimes WHERE UUID = ?", [UUID]);