forked from MarseyWorld/MarseyWorld
make me not see modmail, if its important the other jannies will tell me
parent
86cea2302e
commit
2938f930fd
|
@ -235,9 +235,7 @@ def submit_contact(v):
|
|||
execute_blackjack(v, new_comment, new_comment.body_html, 'modmail')
|
||||
new_comment.top_comment_id = new_comment.id
|
||||
|
||||
admins = g.db.query(User).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'])
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
admins = admins.filter(User.id != AEVANN_ID)
|
||||
admins = g.db.query(User).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'], User.id != AEVANN_ID)
|
||||
|
||||
for admin in admins.all():
|
||||
notif = Notification(comment_id=new_comment.id, user_id=admin.id)
|
||||
|
|
|
@ -550,9 +550,7 @@ def messagereply(v):
|
|||
top_comment = c.top_comment(g.db)
|
||||
|
||||
if top_comment.sentto == MODMAIL_ID:
|
||||
admins = g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'], User.id != v.id)
|
||||
if SITE == 'watchpeopledie.tv':
|
||||
admins = admins.filter(User.id != AEVANN_ID)
|
||||
admins = g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'], User.id != v.id, User.id != AEVANN_ID)
|
||||
|
||||
admins = [x[0] for x in admins.all()]
|
||||
|
||||
|
|
Loading…
Reference in New Issue