diff --git a/files/classes/user.py b/files/classes/user.py index 2d8ecd760..8de5a6075 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -348,25 +348,15 @@ class User(CreatedBase): def post_notifications_count(self): return g.db.query(Notification.user_id).join(Comment).filter(Notification.user_id == self.id, Notification.read == False, Comment.author_id == AUTOJANNY_ID).count() - @property - @lazy - def reddit_notifications_count(self): - return g.db.query(Notification.user_id).join(Comment).filter(Notification.user_id == self.id, Notification.read == False, Comment.state_mod == StateMod.VISIBLE, Comment.state_user_deleted_utc == None, Comment.body_html.like('%

New site mention: 24: break - elif not n.read: - n.read = True - c.unread = True - g.db.add(n) - if n.created_utc > 1620391248: c.notif_utc = n.created_utc - listing.append(c) - - g.db.commit() - next_exists = (len(notifications) > len(listing)) else: comments = g.db.query(Comment, Notification).join(Notification, Notification.comment_id == Comment.id).filter( @@ -104,7 +85,6 @@ def notifications(v): Comment.state_mod == StateMod.VISIBLE, Comment.state_user_deleted_utc == None, Comment.author_id != AUTOJANNY_ID, - Comment.body_html.notlike('%

New site mention: {{v.notifications_count}} + {{v.notifications_count}} {% else %} {% endif %} @@ -57,7 +57,7 @@ {% if v.notifications_count %}

{% else %} diff --git a/files/templates/notifications.html b/files/templates/notifications.html index d4e7d3dbe..e237df7f8 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -35,13 +35,6 @@ {% endif %} - {% if v.admin_level %} - - {% endif %}