master
Aevann1 2022-04-29 16:43:21 +02:00
parent 9353f6507c
commit 49751bc6d8
1 changed files with 2 additions and 0 deletions

View File

@ -748,8 +748,10 @@ def messagereply(v):
if c.top_comment.sentto == 2:
ids = [x.id for x in c.top_comment.replies]
print(ids, flush=True)
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids))
for n in notifications:
print(n.id, flush=True)
g.db.delete(n)
admins = g.db.query(User).filter(User.admin_level > 2, User.id != v.id).all()