From 2783b7361c019316f4abe534438955ce94fe6b37 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 20 Aug 2023 06:06:46 +0300 Subject: [PATCH] make sure notifs are marked as read in the template --- files/routes/notifications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index bdfd11c59..148881c8e 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -410,6 +410,8 @@ def notifications(v): all_cids = set(all_cids) output = get_comments_v_properties(v, None, Comment.id.in_(all_cids))[1] + g.db.flush() + if v.client: return {"data":[x.json for x in listing]} return render_template("notifications.html",