From fa26f516ee8707580af9cf32c8d21378b10df688 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 17:57:16 +0200 Subject: [PATCH] dont mark my own messages as unread --- files/routes/notifications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 05c6b6d26..550053529 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -74,6 +74,7 @@ def notifications_modmail(v): for c in listing: c_and_children = [c] + c.replies('old') for c in c_and_children: + if c.author_id == v.id: continue c.unread = c.created_utc > v.last_viewed_modmail_notifs if not session.get("GLOBAL") and not request.values.get('nr'):