forked from MarseyWorld/MarseyWorld
fsd
parent
9353f6507c
commit
49751bc6d8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue