forked from rDrama/rDrama
fix 500 error
parent
f5fde6b4c7
commit
0f6b36f40b
|
@ -282,7 +282,7 @@ def submit_contact(v):
|
||||||
new_comment.top_comment_id = new_comment.id
|
new_comment.top_comment_id = new_comment.id
|
||||||
|
|
||||||
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL']).all()]
|
admin_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_MODMAIL']).all()]
|
||||||
if SITE == 'watchpeopledie.tv':
|
if SITE == 'watchpeopledie.tv' and AEVANN_ID in admin_ids:
|
||||||
admin_ids.remove(AEVANN_ID)
|
admin_ids.remove(AEVANN_ID)
|
||||||
|
|
||||||
for admin_id in admin_ids:
|
for admin_id in admin_ids:
|
||||||
|
|
|
@ -666,7 +666,7 @@ def messagereply(v:User):
|
||||||
|
|
||||||
if top_comment.sentto == MODMAIL_ID:
|
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()]
|
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 == 'watchpeopledie.tv':
|
if SITE == 'watchpeopledie.tv' and AEVANN_ID in admin_ids:
|
||||||
admin_ids.remove(AEVANN_ID)
|
admin_ids.remove(AEVANN_ID)
|
||||||
|
|
||||||
if parent.author.id not in admin_ids + [v.id]:
|
if parent.author.id not in admin_ids + [v.id]:
|
||||||
|
|
Loading…
Reference in New Issue