feat: add comments

This commit is contained in:
gosangam
2026-06-13 01:30:18 +05:30
parent 6a0559e608
commit cc5633c37a
6 changed files with 900 additions and 12 deletions
+11 -3
View File
@@ -144,9 +144,13 @@ 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.actor_handle
? `/u/${n.actor_handle}`
: null;
: (n.kind === "post_comment" || n.kind === "comment_reply") &&
n.post_id &&
n.post_author_handle
? `/u/${n.post_author_handle}/posts#post-${n.post_id}`
: n.actor_handle
? `/u/${n.actor_handle}`
: null;
return href ? (
<li>
@@ -181,6 +185,10 @@ function messageFor(n: AppNotification): string {
}
case "post_mention":
return "mentioned you in a post.";
case "post_comment":
return "commented on your post.";
case "comment_reply":
return "replied to your comment.";
default:
return "sent you a notification.";
}