diff --git a/files/routes/posts.py b/files/routes/posts.py index 9097864cee..0038b9822f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -81,8 +81,6 @@ def post_id(pid, anything=None, v=None): post = get_post(pid, v=v) - if v and v.id == 1: print(post.realbody(v)) - if v: votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery() diff --git a/files/templates/submission.html b/files/templates/submission.html index 3afad1b1a9..6dd68b132b 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -312,7 +312,7 @@ {% endif %} {% endif %} - {% if p.realbody(v) != None %} + {% if len(p.realbody(v)) > 0 %}