diff --git a/files/routes/front.py b/files/routes/front.py index 4954bedf4f..064eb821a8 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -103,11 +103,11 @@ def notifications(v): g.db.commit() - all = set(x[0] for x in g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False, + all = g.db.query(Comment).join(Notification, Notification.comment_id == Comment.id).filter(Comment.is_banned == False, Comment.deleted_utc == 0, Comment.author_id != AUTOJANNY_ID, Comment.body_html.notlike('