diff --git a/files/routes/comments.py b/files/routes/comments.py index 4cc5022516..93b4770944 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -317,7 +317,8 @@ def api_comment(v): is_bot=is_bot, app_id=v.client.application.id if v.client else None, body_html=body_html, - body=body[:10000] + body=body[:10000], + ghost=parent_post.ghost ) c.upvotes = 1 @@ -340,7 +341,7 @@ def api_comment(v): if request.host == 'pcmemes.net' and c.body.lower().startswith("based"): pill = re.match("based and (.{1,20}?)(-| )pilled", body, re.IGNORECASE) - if level == 1: basedguy = get_account(c.post.author_id) + if level == 1: basedguy = get_account(parent_post.author_id) else: basedguy = get_account(c.parent_comment.author_id) basedguy.basedcount += 1 if pill: @@ -360,7 +361,8 @@ def api_comment(v): level=level+1, is_bot=True, body_html=body_based_html, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c_based) @@ -390,7 +392,8 @@ def api_comment(v): level=level+1, is_bot=True, body_html=body_jannied_html, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c_jannied) @@ -411,7 +414,8 @@ def api_comment(v): level=level+1, is_bot=True, body_html=body_html2, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c2) @@ -446,7 +450,8 @@ def api_comment(v): level=level+1, is_bot=True, body_html=body_html2, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c2) @@ -469,7 +474,8 @@ def api_comment(v): level=level+2, is_bot=True, body_html=body_html2, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c3) @@ -485,7 +491,8 @@ def api_comment(v): level=level+3, is_bot=True, body_html=body_html2, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=parent_post.ghost ) g.db.add(c4) @@ -732,7 +739,8 @@ def edit_comment(cid, v): level=c.level+1, is_bot=True, body_html=body_jannied_html, - top_comment_id=c.top_comment_id + top_comment_id=c.top_comment_id, + ghost=c.ghost ) g.db.add(c_jannied) diff --git a/files/templates/comments.html b/files/templates/comments.html index 2f00204eff..8edc98f2c0 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -864,7 +864,7 @@ {% if v %} - + {% endif %} @@ -876,7 +876,7 @@ {% include "expanded_image_modal.html" %} - + \ No newline at end of file + \ No newline at end of file diff --git a/files/templates/submission.html b/files/templates/submission.html index 6075f87d44..276ecad1d2 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -863,7 +863,7 @@ {% if offset %} - + {% endif %} {% elif not p.replies and p.deleted_utc == 0 %}