From 0e1e790c346dd2d0b142803e5892ac3f2de091b5 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Fri, 20 Mar 2026 09:39:51 -0700 Subject: [PATCH] Include recId with log event for suggested profiles (#10075) --- src/analytics/metrics/types.ts | 1 + src/components/FeedInterstitials.tsx | 6 +++++- src/state/queries/suggested-follows.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/analytics/metrics/types.ts b/src/analytics/metrics/types.ts index ae1217df85..113bef9137 100644 --- a/src/analytics/metrics/types.ts +++ b/src/analytics/metrics/types.ts @@ -521,6 +521,7 @@ export type Events = { | 'InterstitialProfile' | 'Profile' | 'Onboarding' + recId?: number | string } 'suggestedUser:dismiss': { logContext: 'InterstitialDiscover' | 'InterstitialProfile' diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 1a64d01bbf..af73d904b7 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -215,13 +215,14 @@ export function SuggestedFollows({feed}: {feed: FeedDescriptor}) { } export function SuggestedFollowsProfile({did}: {did: string}) { - const {profiles, onDismiss, isLoading, error} = + const {profiles, recId, onDismiss, isLoading, error} = useSuggestedFollowsByActorWithDismiss({did}) return ( {({hovered}) => ( diff --git a/src/state/queries/suggested-follows.ts b/src/state/queries/suggested-follows.ts index 4bb44f2400..c1ec4a12a7 100644 --- a/src/state/queries/suggested-follows.ts +++ b/src/state/queries/suggested-follows.ts @@ -92,6 +92,7 @@ export function useSuggestedFollowsByActorWithDismiss({ return { profiles, + recId: data?.recId, onDismiss, isLoading, error,