From 0d3b4c49bada0cf51924812a67ecd5ea973c90e3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Sep 2021 22:48:45 +0200 Subject: [PATCH] fdsfs --- files/routes/posts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 1ee65b8ca..884376fb1 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -111,7 +111,7 @@ def post_id(pid, anything=None, v=None): if not (v and v.shadowbanned) and not (v and v.admin_level == 6): 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.author_id.notin_(shadowbanned)) + comments = g.db.query(Comment).filter(Comment.author_id.notin_(shadowbanned)) comments = g.db.query( Comment, @@ -226,7 +226,6 @@ def post_id(pid, anything=None, v=None): if request.headers.get("Authorization"): return {"error":"Must be 18+ to view"}, 451 else: return render_template("errors/nsfw.html", v=v) - post.tree_comments() g.db.commit() if request.headers.get("Authorization"): return post.json else: