diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-29 17:33:12 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-29 17:33:12 +0100 |
commit | e931d6a88b2c986e7074a0f1b5423e9b1d85d882 (patch) | |
tree | d00dcfc489346055d2a3be8c2ad204f719cd5601 /app/blueprints/threads/__init__.py | |
parent | a8a3067ac90e380c81bfc61da3eee60e5a946cfa (diff) | |
download | cheatdb-e931d6a88b2c986e7074a0f1b5423e9b1d85d882.tar.xz |
Fix comment length checking
Diffstat (limited to 'app/blueprints/threads/__init__.py')
-rw-r--r-- | app/blueprints/threads/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 705703a..6a2fdb8 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -199,7 +199,7 @@ def view(id): flash("Please wait before commenting again", "danger") return redirect(thread.getViewURL()) - if len(comment) <= 500 and len(comment) > 3: + if len(comment) <= 2000 and len(comment) > 3: reply = ThreadReply() reply.author = current_user reply.comment = comment @@ -216,7 +216,7 @@ def view(id): return redirect(thread.getViewURL()) else: - flash("Comment needs to be between 3 and 500 characters.") + flash("Comment needs to be between 3 and 2000 characters.") return render_template("threads/view.html", thread=thread) |