mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Allow self-upvotes on dead submissions
This commit is contained in:
parent
f4b36867ff
commit
f7bde024cb
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue