This commit is contained in:
Aevann1 2022-04-29 16:47:34 +02:00
parent 2c66f596fd
commit 65716a84d0

View file

@ -747,7 +747,7 @@ def messagereply(v):
if c.top_comment.sentto == 2: if c.top_comment.sentto == 2:
ids = [x.id for x in c.top_comment.replies] + c.top_comment.id ids = [x.id for x in c.top_comment.replies] + [c.top_comment.id]
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids)) notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids))
for n in notifications: for n in notifications:
g.db.delete(n) g.db.delete(n)