From 284ee7bd60b04165531f7bad2837798354160b7c Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Sun, 12 Sep 2021 21:20:57 +0200 Subject: [PATCH] nig --- files/classes/user.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/classes/user.py b/files/classes/user.py index f25bcca167..7778658948 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -225,6 +225,11 @@ class User(Base, Stndrd, Age_times): comments = comments.options(contains_eager(Comment.post)) + if not v: + comments = comments.join(Comment.post).filter(Submission.club == False) + elif v.admin_level < 3 and (v.coins < 750 or v.club_banned): + comments = comments.join(Comment.post).filter(Submission.club == False) + now = int(time.time()) if t == 'hour': cutoff = now - 3600