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