Skip to content

Commit

Permalink
consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
thirtyseven committed Oct 14, 2011
1 parent 2d977a8 commit 36b74be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions occupywallst/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,7 @@ def comment_new(user, article_slug, parent_id, content, **kwargs):
if not (user and user.id):
raise APIException("you're not logged in")
content = content.strip()
if len(content) < 3:
raise APIException("comment too short")
if len(content) > 5 * 1024:
raise APIException("comment too long, jerk.")
if _too_many_caps(content):
raise APIException("turn off bloody caps lock")
_content_validate(content)
try:
article = db.Article.objects.get(slug=article_slug, is_deleted=False)
except db.Article.DoesNotExist:
Expand Down

0 comments on commit 36b74be

Please sign in to comment.