forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-04-16 18:57:44 +02:00
parent 9551f7a548
commit bd2d8539f7
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def notifications(v):
Comment.deleted_utc == 0,
Comment.author_id != AUTOJANNY_ID,
Comment.body_html.notlike('%<p>New site mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc(), Notification.created_utc.desc()).subquery()
).order_by(Comment.parent_comment_id.desc(), Notification.created_utc.desc()).subquery()
if v and (v.shadowbanned or v.admin_level > 2):
comments = g.db.query(Comment).join(sq, sq.c.id == Comment.id).order_by(sq.c.created_utc.desc()).offset(25 * (page - 1)).limit(26).all()