From e18dac8f405db7f7744d863414f52033b0484738 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 16 Sep 2021 12:06:55 +0200 Subject: [PATCH] fd --- 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 94ef30a635..d7b95bacd9 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -118,7 +118,7 @@ def post_id(pid, anything=None, v=None): if not (v and v.shadowbanned) and not (v and v.admin_level == 6): shadowbanned = g.db.query(User.id).filter(User.shadowbanned == True).subquery() - comments = g.db.query(Comment).filter(Comment.author_id.notin_(shadowbanned)) + comments = comments.filter(Comment.author_id.notin_(shadowbanned)) if v.admin_level >=4: comments=comments.options(joinedload(Comment.oauth_app))