diff --git a/files/routes/admin.py b/files/routes/admin.py index 12fe2b6ff..739942eb5 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -552,7 +552,7 @@ def badge_grant_post(v): try: badge_id = int(request.values.get("badge_id")) except: abort(400) - if badge_id in {16,17,21,22,23,24,25,26,27,94,95,96,97,98,109,137} and v.id != AEVANN_ID: + if badge_id in {16,17,21,22,23,24,25,26,27,94,95,96,97,98,109,137} and v.id != AEVANN_ID and SITE != 'pcmemes.net': abort(403) if user.has_badge(badge_id): diff --git a/files/routes/static.py b/files/routes/static.py index e4d5ebe90..6f79af7aa 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -228,7 +228,11 @@ def submit_contact(v): g.db.flush() new_comment.top_comment_id = new_comment.id - for admin in g.db.query(User).filter(User.admin_level > 2).all(): + admins = g.db.query(User).filter(User.admin_level > 2) + if SITE == 'watchpeopledie.co': + admins = admins.filter(User.id != AEVANN_ID) + + for admin in admins.all(): notif = Notification(comment_id=new_comment.id, user_id=admin.id) g.db.add(notif) diff --git a/files/routes/users.py b/files/routes/users.py index ecf524c10..9a55bcf76 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -826,7 +826,11 @@ def messagereply(v): if c.top_comment.sentto == 2: - admins = [x[0] for x in g.db.query(User.id).filter(User.admin_level > 2, User.id != v.id).all()] + admins = g.db.query(User.id).filter(User.admin_level > 2, User.id != v.id) + if SITE == 'watchpeopledie.co': + admins = admins.filter(User.id != AEVANN_ID) + + admins = [x[0] for x in admins.all()] if parent.author.id not in admins: admins.append(parent.author.id)