This commit is contained in:
Aevann1 2022-04-29 16:43:21 +02:00
parent 4393a14ccc
commit 8345cc02e0

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()