Prevent posts without comments on /r9k/.

Including quotelink-only comments and other posts that will be rejected as zero-content.
This commit is contained in:
ccd0 2015-10-29 21:06:53 -07:00
parent 4c378bab75
commit 8ad001f0e5

View File

@ -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