From 23508967796b876b0a9e7763ddefca4264f0e009 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Sep 2021 22:51:18 +0200 Subject: [PATCH] fddf --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 884376fb16..1331e8a074 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -171,7 +171,7 @@ def post_id(pid, anything=None, v=None): else: shadowbanned = [x[0] for x in g.db.query(User.id).options(lazyload('*')).filter(User.shadowbanned == True).all()] - comments = g.db.query(Comment).options(lazyload('*')).filter(Comment.parent_submission == post.id, Comment.author_id.notin_(shadowbanned)) + comments = g.db.query(Comment).filter(Comment.parent_submission == post.id, Comment.author_id.notin_(shadowbanned)) if sort == "top": comments = sorted(comments.all(), key=lambda x: x.score, reverse=True)