Skip to content

Commit

Permalink
fix up other routes
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 2, 2024
1 parent 9cdc882 commit b86ba6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/bsky/src/api/app/bsky/feed/getAuthorFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ const hydration = async (inputs: {
const [feedPostState, profileViewerState = {}] = await Promise.all([
ctx.hydrator.hydrateFeedItems(skeleton.items, params.viewer),
params.viewer
? ctx.hydrator.actor.getProfileViewerStates(
[skeleton.actor.did],
params.viewer,
)
? ctx.hydrator.hydrateProfileViewers([skeleton.actor.did], params.viewer)
: undefined,
])
return mergeStates(feedPostState, profileViewerState)
Expand Down
5 changes: 4 additions & 1 deletion packages/bsky/src/api/app/bsky/graph/getRelationships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default function (server: Server, ctx: AppContext) {
},
}
}
const res = await ctx.hydrator.actor.getProfileViewerStates(others, actor)
const res = await ctx.hydrator.actor.getProfileViewerStatesNaive(
others,
actor,
)
const relationships = others.map((did) => {
const subject = res.get(did)
return subject
Expand Down

0 comments on commit b86ba6e

Please sign in to comment.