remotes/1693045480750635534/spooky-22
Aevann1 2022-04-04 00:30:32 +02:00
parent 03347040fd
commit 47e92a75b4
1 changed files with 2 additions and 2 deletions

View File

@ -89,12 +89,12 @@ def notifications(v):
next_exists = (len(notifications) > len(listing))
else:
all = set([x.comment_id for x in v.notifications.join(Notification.comment).filter(
all = [x.comment_id for x in v.notifications.join(Notification.comment).filter(
Comment.is_banned == False,
Comment.deleted_utc == 0,
Comment.author_id != AUTOJANNY_ID,
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).limit(100 + 50*page).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(
Comment.is_banned == False,