From 40834d8277976cdef830c9334d9b2f03f8ac9ded Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 11 Mar 2023 12:11:39 +0200 Subject: [PATCH] fix unread highlight --- files/routes/notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 199332355c..6b564d19fb 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -330,6 +330,8 @@ def notifications(v:User): for c, n in comments: if n.created_utc > 1620391248: c.notif_utc = n.created_utc + if not n.read: c.unread = True + if c.parent_submission or c.wall_user_id: total.append(c) @@ -366,7 +368,6 @@ def notifications(v:User): if not n.read and not session.get("GLOBAL"): n.read = True - c.unread = True g.db.add(n) total.extend(listing)