fix wrong logic for modmail notifs
parent
5c4e0a5b79
commit
cd88e4a4d6
|
@ -283,7 +283,7 @@ def submit_contact(v):
|
|||
|
||||
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL']).all()]
|
||||
if SITE_NAME == 'watchpeopledie.tv':
|
||||
admin_ids += AEVANN_ID
|
||||
admin_ids.remove(AEVANN_ID)
|
||||
|
||||
for admin_id in admin_ids:
|
||||
notif = Notification(comment_id=new_comment.id, user_id=admin_id)
|
||||
|
|
|
@ -667,7 +667,7 @@ def messagereply(v:User):
|
|||
if top_comment.sentto == MODMAIL_ID:
|
||||
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL'], User.id != v.id).all()]
|
||||
if SITE_NAME == 'watchpeopledie.tv':
|
||||
admin_ids += AEVANN_ID
|
||||
admin_ids.remove(AEVANN_ID)
|
||||
|
||||
if parent.author.id not in admin_ids + [v.id]:
|
||||
admin_ids.append(parent.author.id)
|
||||
|
|
Loading…
Reference in New Issue