Skip to content

Commit 738f863

Browse files
committed
Don't send server-side render error for title submissions
1 parent 10e3782 commit 738f863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/postBranding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function postBranding(req: Request, res: Response) {
5555
const hashedIP = await getHashCache(getIP(req) + config.globalSalt as IPAddress);
5656
const isBanned = await checkBanStatus(hashedUserID, hashedIP);
5757

58-
if (videoDuration && await checkForWrongVideoDuration(videoID, videoDuration)) {
58+
if (videoDuration && thumbnail && await checkForWrongVideoDuration(videoID, videoDuration)) {
5959
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.");
6060
}
6161

0 commit comments

Comments
 (0)