From bb32e6eaa5406c0ee9e26f37f4cae36ed2998f85 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 17 Nov 2015 21:20:37 -0800 Subject: [PATCH] All posting errors should reload the captcha if we need more. --- src/Posting/QR.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index f26bc5e93..99f3d29b6 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -222,8 +222,6 @@ QR = else el = err el.removeAttribute 'style' - if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent - QR.captcha.setup true notice = new Notice 'warning', el QR.notifications.push notice unless Header.areNotificationsEnabled @@ -633,7 +631,9 @@ QR = if QR.captcha.isEnabled and !err captcha = QR.captcha.getOne() - err = 'No valid captcha.' unless captcha + unless captcha + err = 'No valid captcha.' + QR.captcha.setup true QR.cleanNotifications() if err @@ -773,11 +773,11 @@ QR = QR.cooldown.addMute seconds else QR.cooldown.addDelay post, seconds - QR.captcha.setup true else # stop auto-posting QR.cooldown.auto = false QR.status() QR.error err + QR.captcha.setup true return h1 = $ 'h1', resDoc