forked from rDrama/rDrama
fds
parent
9551f7a548
commit
bd2d8539f7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue