diff --git a/app/javascript/mastodon/features/notifications_v2/components/notification_favourite.tsx b/app/javascript/mastodon/features/notifications_v2/components/notification_favourite.tsx
index 49866540e5..23ead604ba 100644
--- a/app/javascript/mastodon/features/notifications_v2/components/notification_favourite.tsx
+++ b/app/javascript/mastodon/features/notifications_v2/components/notification_favourite.tsx
@@ -33,6 +33,34 @@ const labelRenderer: LabelRenderer = (displayedName, total, seeMoreHref) => {
);
};
+const privateLabelRenderer: LabelRenderer = (
+ displayedName,
+ total,
+ seeMoreHref,
+) => {
+ if (total === 1)
+ return (
+
+ );
+
+ return (
+
+ seeMoreHref ? {chunks} : chunks,
+ }}
+ />
+ );
+};
+
export const NotificationFavourite: React.FC<{
notification: NotificationGroupFavourite;
unread: boolean;
@@ -44,6 +72,10 @@ export const NotificationFavourite: React.FC<{
?.acct,
);
+ const isPrivateMention = useAppSelector(
+ (state) => state.statuses.getIn([statusId, 'visibility']) === 'direct',
+ );
+
return (
{count, plural, one {# other} other {# others}} favorited your post",
+ "notification.favourite_pm": "{name} favorited your private mention",
+ "notification.favourite_pm.name_and_others_with_link": "{name} and {count, plural, one {# other} other {# others}} favorited your private mention",
"notification.follow": "{name} followed you",
"notification.follow.name_and_others": "{name} and {count, plural, one {# other} other {# others}} followed you",
"notification.follow_request": "{name} has requested to follow you",