From 6aef678408934b6239b79075387e67f590922a3e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Sep 2021 18:18:16 +0200 Subject: [PATCH] fdfd --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index f982d1f714..4a9815a0ad 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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 == []]