From 2c9079f565c9a9e9149ff777d15779f6c30250f9 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 21 Jan 2024 19:46:16 -0500 Subject: [PATCH] No more verification through sb submissions --- src/routes/postBranding.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/postBranding.ts b/src/routes/postBranding.ts index b9213b2..c2a1133 100644 --- a/src/routes/postBranding.ts +++ b/src/routes/postBranding.ts @@ -218,9 +218,8 @@ async function updateVoteTotals(type: BrandingType, UUID: BrandingUUID, shouldLo export async function getVerificationValue(hashedUserID: HashedUserID, isVip: boolean): Promise { const voteSum = await db.prepare("get", `SELECT SUM("maxVotes") as "voteSum" FROM (SELECT MAX("votes") as "maxVotes" from "titles" JOIN "titleVotes" ON "titles"."UUID" = "titleVotes"."UUID" WHERE "titles"."userID" = ? GROUP BY "titles"."videoID") t`, [hashedUserID]); - const sbSubmissions = () => db.prepare("get", `SELECT COUNT(*) as count FROM "sponsorTimes" WHERE "userID" = ? AND "votes" > 0 LIMIT 3`, [hashedUserID]); - if (voteSum.voteSum >= 1 || isVip || (await sbSubmissions()).count > 2 || await hasFeature(hashedUserID, Feature.DeArrowTitleSubmitter)) { + if (voteSum.voteSum >= 1 || isVip || await hasFeature(hashedUserID, Feature.DeArrowTitleSubmitter)) { return 0; } else { return -1;