feat: add inline mentions in comments

This commit is contained in:
gosangam
2026-06-13 13:10:34 +05:30
parent 37305201bd
commit eb0c981d3c
5 changed files with 272 additions and 11 deletions
+5 -1
View File
@@ -145,7 +145,9 @@ function NotificationRow({
? `/u/${selfHandle}/posts#post-${n.post_id}`
: n.kind === "post_mention" && n.post_id && n.actor_handle
? `/u/${n.actor_handle}/posts#post-${n.post_id}`
: (n.kind === "post_comment" || n.kind === "comment_reply") &&
: (n.kind === "post_comment" ||
n.kind === "comment_reply" ||
n.kind === "comment_mention") &&
n.post_id &&
n.post_author_handle
? `/u/${n.post_author_handle}/posts#post-${n.post_id}`
@@ -190,6 +192,8 @@ function messageFor(n: AppNotification): string {
return "commented on your post.";
case "comment_reply":
return "replied to your comment.";
case "comment_mention":
return "mentioned you in a comment.";
default:
return "sent you a notification.";
}