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