From 8ad001f0e5b067f90aafe9c776f6647af927c943 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 29 Oct 2015 21:06:53 -0700 Subject: [PATCH] Prevent posts without comments on /r9k/. Including quotelink-only comments and other posts that will be rejected as zero-content. --- src/Posting/QR.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 2064b69c5..bfa484ace 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -627,6 +627,9 @@ QR = else if post.file and thread.fileLimit err = 'Max limit of image replies has been reached.' + if g.BOARD.ID is 'r9k' and !post.com?.match(/[a-z-]/i) + err or= 'Original comment required.' + if QR.captcha.isEnabled and !err captcha = QR.captcha.getOne() err = 'No valid captcha.' unless captcha