make me get notifs for modmail again
parent
db9622565f
commit
4519db0e57
|
@ -624,7 +624,7 @@ class User(Base):
|
|||
@property
|
||||
@lazy
|
||||
def modaction_notifications_count(self):
|
||||
if not self.admin_level or self.id == AEVANN_ID: return 0
|
||||
if not self.admin_level: return 0
|
||||
return g.db.query(ModAction).filter(
|
||||
ModAction.created_utc > self.last_viewed_log_notifs,
|
||||
ModAction.user_id != self.id,
|
||||
|
|
|
@ -262,7 +262,7 @@ 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, User.id != AEVANN_ID).all():
|
||||
for admin in g.db.query(User).filter(User.admin_level > 2).all():
|
||||
notif = Notification(comment_id=new_comment.id, user_id=admin.id)
|
||||
g.db.add(notif)
|
||||
|
||||
|
|
|
@ -826,7 +826,7 @@ 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, User.id != AEVANN_ID).all()]
|
||||
admins = [x[0] for x in g.db.query(User.id).filter(User.admin_level > 2, User.id != v.id).all()]
|
||||
|
||||
if parent.author.id not in admins:
|
||||
admins.append(parent.author.id)
|
||||
|
|
Loading…
Reference in New Issue