From 738f863581db12ff492bada0a85246ee3263a070 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 25 Jun 2024 14:36:05 +0530 Subject: [PATCH] Don't send server-side render error for title submissions --- src/routes/postBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postBranding.ts b/src/routes/postBranding.ts index 433819a..33128e7 100644 --- a/src/routes/postBranding.ts +++ b/src/routes/postBranding.ts @@ -55,7 +55,7 @@ export async function postBranding(req: Request, res: Response) { const hashedIP = await getHashCache(getIP(req) + config.globalSalt as IPAddress); const isBanned = await checkBanStatus(hashedUserID, hashedIP); - if (videoDuration && await checkForWrongVideoDuration(videoID, videoDuration)) { + if (videoDuration && thumbnail && await checkForWrongVideoDuration(videoID, videoDuration)) { res.status(403).send("YouTube is currently testing a new anti-adblock technique called server-side ad-injection. This causes skips and submissions to be offset by the duration of the ad. It seems that you are affected by this A/B test, so until a fix is developed, we cannot accept submissions from your device due to them potentially being inaccurate."); }