diff options
| -rw-r--r-- | apioforum/templates/edit_post.html | 2 | ||||
| -rw-r--r-- | apioforum/thread.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apioforum/templates/edit_post.html b/apioforum/templates/edit_post.html index 573fd4e..6bae52c 100644 --- a/apioforum/templates/edit_post.html +++ b/apioforum/templates/edit_post.html @@ -10,7 +10,7 @@ {% if post.wiki == 1 %} <p> <label for="comment">comment</label> -<input type="text" id="comment" name="comment" placeholder="fixed spelling issues"> +<input type="text" id="comment" name="comment" placeholder="inserted bees"> </p> {% endif %} <p>confirm edit?</p> diff --git a/apioforum/thread.py b/apioforum/thread.py index 4e3b326..93cb76b 100644 --- a/apioforum/thread.py +++ b/apioforum/thread.py @@ -413,6 +413,8 @@ def edit_post(post_id): err = None newcontent = request.form['newcontent'] comment = request.form['comment'] if 'comment' in request.form else "" + if len(comment)>2000: + err="edit summary is too long" if len(newcontent.strip()) == 0: err="post contents can't be empty" |
