Re-setup the QR captcha when necessary. Fix #1534

This commit is contained in:
Mayhem 2014-04-05 13:45:34 +02:00
parent 20846ad4fe
commit 9ee39b3908

View File

@ -546,6 +546,7 @@ QR =
QR.cooldown.auto = false
QR.status()
QR.error err
QR.captcha.setup() if QR.captcha.isEnabled and QR.cooldown.auto
return
h1 = $ 'h1', resDoc
@ -576,6 +577,7 @@ QR =
# Enable auto-posting if we have stuff left to post, disable it otherwise.
postsCount = QR.posts.length - 1
QR.cooldown.auto = postsCount and isReply
QR.captcha.setup() if QR.captcha.isEnabled and QR.cooldown.auto
unless Conf['Persistent QR'] or QR.cooldown.auto
QR.close()