From f10b6e7f2c4bdd1d94bbc923b545af52176b96b4 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Sun, 12 Sep 2021 22:11:40 +0200 Subject: [PATCH] nigg --- files/routes/front.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 7c4223fcd..c26477136 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -399,6 +399,11 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all", **kwargs): comments = comments.join(posts, Comment.parent_submission == posts.c.id) + if not v: + comments = comments.filter(Submission.club == False) + elif v.admin_level < 3 and (v.coins < 750 or v.club_banned): + comments = comments.filter(Submission.club == False) + now = int(time.time()) if t == 'hour': cutoff = now - 3600