diff --git a/files/routes/front.py b/files/routes/front.py index 870501c83e..90e8cd1a7e 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -37,6 +37,7 @@ def unread(v): @app.get("/notifications") @auth_required def notifications(v): + t = time.time() try: page = int(request.values.get('page', 1)) except: page = 1 messages = request.values.get('messages') @@ -88,6 +89,13 @@ def notifications(v): next_exists = (len(notifications) > len(listing)) else: + 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('

New rdrama mention: