From 5ffc51588e35406dfa05d3772373785491021a27 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 17:57:25 +0200 Subject: [PATCH] add #context to /notification --- files/classes/comment.py | 2 +- files/routes/notifications.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 0af8e52f7..c60a00e0c 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -308,7 +308,7 @@ class Comment(Base): return f"/@{self.wall_user.username}/wall/comment/{self.id}#context" if self.parent_post: return f"{self.post.shortlink}/{self.id}#context" - return f"/notification/{self.id}" + return f"/notification/{self.id}#context" @property @lazy diff --git a/files/routes/notifications.py b/files/routes/notifications.py index b66a017b9..13ee9625b 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -462,4 +462,5 @@ def notification(v, cid): page=1, standalone=True, render_replies=True, + focused_comment=comment, )