From 15fe688e0792e09fe1b060358d2e34f35e3e7938 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 24 Mar 2013 22:46:12 +0100 Subject: [PATCH] Don't enable auto-posting when creating threads. --- src/qr.coffee | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/qr.coffee b/src/qr.coffee index 9f06a95be..ea724eec8 100644 --- a/src/qr.coffee +++ b/src/qr.coffee @@ -964,6 +964,7 @@ QR = [_, threadID, postID] = h1.nextSibling.textContent.match /thread:(\d+),no:(\d+)/ postID = +postID threadID = +threadID or postID + isReply = threadID isnt postID (QR.yourPosts.threads[threadID] or= []).push postID $.set "yourPosts.#{g.BOARD}", QR.yourPosts @@ -976,14 +977,11 @@ QR = }, QR.nodes.el # Enable auto-posting if we have stuff to post, disable it otherwise. - QR.cooldown.auto = QR.posts.length > 1 + QR.cooldown.auto = QR.posts.length > 1 and isReply post.rm() - QR.cooldown.set - req: req - post: post - isReply: !!threadID + QR.cooldown.set {req, post, isReply} if threadID is postID # new thread URL = "/#{g.BOARD}/res/#{threadID}"