From bd7c17ae412a4a9019b63ee812735b6b156d8043 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Feb 2022 21:02:44 +0200 Subject: [PATCH 1/2] vxc --- files/helpers/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index ca53e21716..b1cb3b1931 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -138,7 +138,7 @@ AGENDAPOSTER_MSG = """Hi @{username},\n\nYour {type} has been automatically remo included. \n\n*This is an automated message; if you need help, you can message us [here](/contact).*""" -if SITE_NAME == 'Drama': +if SITE_NAME in ('Drama','2Much4You'): PW_ID = 3750 BASEDBOT_ID = 0 KIPPY_ID = 7150 From 94b8a5291ac8af76d4b0a6bb8e6063485e0f8945 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Feb 2022 21:05:06 +0200 Subject: [PATCH 2/2] cvx --- files/routes/front.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 1829b5efd4..fb740b6b7a 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()]