Take captcha cookie into account when determining whether to reload captcha. #1767

This commit is contained in:
ccd0 2018-01-23 10:30:21 -08:00
parent e21655f463
commit 095840a80a

View File

@ -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