From 095840a80a72ba49458c0dd2336e58b3db50e7bd Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 23 Jan 2018 10:30:21 -0800 Subject: [PATCH] Take captcha cookie into account when determining whether to reload captcha. #1767 --- src/Posting/Captcha.cache.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.cache.coffee b/src/Posting/Captcha.cache.coffee index 1f6f05b49..a6621ba2c 100644 --- a/src/Posting/Captcha.cache.coffee +++ b/src/Posting/Captcha.cache.coffee @@ -14,7 +14,7 @@ Captcha.cache = needed: -> captchaCount = @captchas.length - captchaCount++ if QR.req + captchaCount++ if QR.req or /\b_ct=/.test(d.cookie) postsCount = QR.posts.length postsCount = 0 if postsCount is 1 and !Conf['Auto-load captcha'] and !QR.posts[0].com and !QR.posts[0].file captchaCount < postsCount