add #context to /notification

pull/223/head
Aevann 2024-02-18 17:57:25 +02:00
parent 0b00ee57e7
commit 5ffc51588e
2 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class Comment(Base):
return f"/@{self.wall_user.username}/wall/comment/{self.id}#context" return f"/@{self.wall_user.username}/wall/comment/{self.id}#context"
if self.parent_post: if self.parent_post:
return f"{self.post.shortlink}/{self.id}#context" return f"{self.post.shortlink}/{self.id}#context"
return f"/notification/{self.id}" return f"/notification/{self.id}#context"
@property @property
@lazy @lazy

View File

@ -462,4 +462,5 @@ def notification(v, cid):
page=1, page=1,
standalone=True, standalone=True,
render_replies=True, render_replies=True,
focused_comment=comment,
) )