feat: add comments
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user