diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 2dc330237..dbe5d83d8 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -256,9 +256,6 @@ def notifications(v): if c not in listing: listing.append(c) - if SITE == 'rdrama.net' and v.id == AEVANN_ID: - listing = [x for x in listing if x.sentto != 2] - g.db.commit() if request.headers.get("Authorization"): return {"data":[x.json for x in listing]} diff --git a/files/routes/users.py b/files/routes/users.py index f1c4a2f02..c8fdc48e8 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -793,6 +793,9 @@ def messagereply(v): if parent.author.id not in admins: admins.append(parent.author.id) + if CARP_ID and AEVANN_ID in admins: + admins.remove(AEVANN_ID) + for admin in admins: notif = Notification(comment_id=c.id, user_id=admin) g.db.add(notif)