This commit is contained in:
Aevann1 2022-04-04 00:29:30 +02:00
parent 3862a3a858
commit 53fdec4a33

View file

@ -94,7 +94,7 @@ def notifications(v):
Comment.deleted_utc == 0, Comment.deleted_utc == 0,
Comment.author_id != AUTOJANNY_ID, Comment.author_id != AUTOJANNY_ID,
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%') Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).all()]) ).order_by(Comment.top_comment_id.desc()).limit(100 + 50*page).all()])
notifications = v.notifications.join(Notification.comment).distinct(Comment.top_comment_id).filter( notifications = v.notifications.join(Notification.comment).distinct(Comment.top_comment_id).filter(
Comment.is_banned == False, Comment.is_banned == False,