From 58861acd3d5ef4f4b171bf305ff9831aeb41277d Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 29 Mar 2022 21:16:12 -0500 Subject: [PATCH] Change minimum comment length to 1 character MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comments like "yes", "no" or 😈 wouldn't be available to post either. --- forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms.py b/forms.py index 66c3d12..d1fb1be 100644 --- a/forms.py +++ b/forms.py @@ -31,4 +31,4 @@ class NewPostForm(FlaskForm): class NewCommentForm(FlaskForm): - text = StringField('Text', [validators.Length(min=5, max=50), NoProfanity()]) + text = StringField('Text', [validators.Length(min=1, max=50), NoProfanity()])