From 00b01e55856c445031862aabe0a215d84b85fe6e Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 17 Nov 2015 11:24:24 +0000 Subject: [PATCH] Get rid of post length limit, also decrease lower limit. Ref #71. --- forum.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/forum.nim b/forum.nim index fd082ef..b2d65bd 100644 --- a/forum.nim +++ b/forum.nim @@ -461,11 +461,8 @@ template retrSubject(c: expr) = template retrContent(c: expr) = let content {.inject.} = c.req.params["content"] - if content.strip.len < 10: + if content.strip.len < 2: return setError(c, "content", "Content not long enough") - # Enforce DB content length for posts - elif content.len > 1000: - return setError(c, "content", "Post length too long") if not validateRst(c, content): return false