From f7bde024cb88a3201dc230a28e94b445fd55176c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 24 Aug 2020 20:21:39 -0400 Subject: [PATCH] Allow self-upvotes on dead submissions --- src/routes/voteOnSponsorTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.js b/src/routes/voteOnSponsorTime.js index f2cf152..abe9262 100644 --- a/src/routes/voteOnSponsorTime.js +++ b/src/routes/voteOnSponsorTime.js @@ -116,7 +116,7 @@ async function voteOnSponsorTime(req, res) { return categoryVote(UUID, userID, isVIP, category, hashedIP, res); } - if (type == 1 && !isVIP) { + if (type == 1 && !isVIP && !isOwnSubmission) { // Check if upvoting hidden segment let voteInfo = db.prepare('get', "SELECT votes FROM sponsorTimes WHERE UUID = ?", [UUID]);