From 290d353a2fb5a6238b4085687f370c1e51215b56 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 22 Oct 2021 02:21:51 +0200 Subject: [PATCH] fd --- files/routes/comments.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 3f21ef7cb..dc113ad66 100755 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -76,8 +76,6 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): else: defaultsortingcomments = "top" sort=request.values.get("sort", defaultsortingcomments) - post.replies=[top_comment] - if v: votes = g.db.query(CommentVote).options(lazyload('*')).filter_by(user_id=v.id).subquery() @@ -121,7 +119,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): comment.is_blocked = c[3] or 0 output.append(comment) - post.replies = output + post.replies=[top_comment] if request.headers.get("Authorization"): return top_comment.json else: