From 94b8a5291ac8af76d4b0a6bb8e6063485e0f8945 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Feb 2022 21:05:06 +0200 Subject: [PATCH] cvx --- files/routes/front.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 1829b5efd..fb740b6b7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -341,6 +341,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if (sort == "hot" or (v and v.id == Q_ID)) and page == 1 and ccmode == "false" and not gt and not lt: pins = g.db.query(Submission).filter(Submission.stickied != None, Submission.is_banned == False) if sub: pins = pins.filter_by(sub=sub.name) + elif SITE_NAME == '2Much4You': pins = pins.filter(Submission.sub != None) + else: pins = pins.filter_by(sub=None) + if v and v.admin_level == 0: blocking = [x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=v.id).all()] blocked = [x[0] for x in g.db.query(UserBlock.user_id).filter_by(target_id=v.id).all()]