remotes/1693045480750635534/spooky-22
Aevann1 2021-09-01 18:18:16 +02:00
parent f1461505ff
commit 6aef678408
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ class User(Base, Stndrd, Age_times):
def notification_modmail(self, page=1):
comments = g.db.query(Comment).filter(or_(Comment.author_id==self.id, Comment.sentto==self.id, Comment.sentto==0)).filter(Comment.parent_submission == None).order_by(Comment.created_utc.desc()).limit(100).all()
comments = g.db.query(Comment).filter(Comment.sentto==0).filter(Comment.parent_submission == None).order_by(Comment.created_utc.desc()).limit(100).all()
comments = [c.id for c in comments if c.child_comments == []]