From 5d824c934518c82e33414f164c5abffe538651e5 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 11 Apr 2013 10:43:01 +0200 Subject: [PATCH] Fix #1015 --- src/qr.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qr.coffee b/src/qr.coffee index aa1f79318..6670cc192 100644 --- a/src/qr.coffee +++ b/src/qr.coffee @@ -834,6 +834,7 @@ QR = if g.BOARD.ID is 'f' filetag = QR.nodes.flashTag.value threadID = QR.nodes.thread.value + thread = g.BOARD.threads[threadID] # prevent errors if threadID is 'new' @@ -846,7 +847,7 @@ QR = err = 'You can\'t reply to this thread anymore.' else unless post.com or post.file err = 'No file selected.' - else if post.file and g.BOARD.threads[threadID].fileLimit + else if post.file and thread.fileLimit and !thread.isSticky err = 'Max limit of image replies has been reached.' if QR.captcha.isEnabled and !err