Skip to content

Commit

Permalink
Don't send server-side render error for title submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Jun 25, 2024
1 parent 10e3782 commit 738f863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/postBranding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down

0 comments on commit 738f863

Please sign in to comment.