From bb1f824680e81ffee4ce9b5022f0c28a4ac5a39d Mon Sep 17 00:00:00 2001 From: devin ivy Date: Thu, 7 Mar 2024 15:55:08 -0500 Subject: [PATCH] Appview: include takedowns properly on follow endpoints (#2285) bsky: include takedowns properly on follow endpoints --- packages/bsky/src/api/app/bsky/graph/getFollowers.ts | 1 + packages/bsky/src/api/app/bsky/graph/getFollows.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/bsky/src/api/app/bsky/graph/getFollowers.ts b/packages/bsky/src/api/app/bsky/graph/getFollowers.ts index af6e78c22b7..b2d3288b4bd 100644 --- a/packages/bsky/src/api/app/bsky/graph/getFollowers.ts +++ b/packages/bsky/src/api/app/bsky/graph/getFollowers.ts @@ -84,6 +84,7 @@ const hydration = async ( const profileState = await ctx.hydrator.hydrateProfiles( dids, params.hydrateCtx, + params.canViewTakedowns, ) return mergeStates(followState, profileState) } diff --git a/packages/bsky/src/api/app/bsky/graph/getFollows.ts b/packages/bsky/src/api/app/bsky/graph/getFollows.ts index 08e4abebc0f..d1840f9a19a 100644 --- a/packages/bsky/src/api/app/bsky/graph/getFollows.ts +++ b/packages/bsky/src/api/app/bsky/graph/getFollows.ts @@ -79,6 +79,7 @@ const hydration = async ( const profileState = await ctx.hydrator.hydrateProfiles( dids, params.hydrateCtx, + params.canViewTakedowns, ) return mergeStates(followState, profileState) }