aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-15 16:01:33 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-15 16:01:45 +0100
commit8dd1cd9045bad112d93e58b96332c5dd1b4df996 (patch)
tree99d0e6f97f658d27262aadc7f3ea2222468a0d79 /app/blueprints/threads
parent643380038b0196dfdbfb8356439e897613f0830d (diff)
downloadcheatdb-8dd1cd9045bad112d93e58b96332c5dd1b4df996.tar.xz
Increase comment length limit to 2000
Diffstat (limited to 'app/blueprints/threads')
-rw-r--r--app/blueprints/threads/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index fbaab87..705703a 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -141,14 +141,11 @@ def delete_reply(id):
return redirect(thread.getViewURL())
-
-
class CommentForm(FlaskForm):
- comment = TextAreaField("Comment", [InputRequired(), Length(10, 500)])
+ comment = TextAreaField("Comment", [InputRequired(), Length(10, 2000)])
submit = SubmitField("Comment")
-
@bp.route("/threads/<int:id>/edit/", methods=["GET", "POST"])
@login_required
def edit_reply(id):
@@ -226,7 +223,7 @@ def view(id):
class ThreadForm(FlaskForm):
title = StringField("Title", [InputRequired(), Length(3,100)])
- comment = TextAreaField("Comment", [InputRequired(), Length(10, 500)])
+ comment = TextAreaField("Comment", [InputRequired(), Length(10, 2000)])
private = BooleanField("Private")
submit = SubmitField("Open Thread")