Skip to content

Commit

Permalink
✨ Add proxy for user typeahead through ozone (bluesky-social#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Jul 3, 2024
1 parent d0b4d71 commit 7083c49
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/ozone/src/api/proxied.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,19 @@ export default function (server: Server, ctx: AppContext) {
}
},
})

server.app.bsky.actor.searchActorsTypeahead({
auth: ctx.authVerifier.moderator,
handler: async (request) => {
const res =
await ctx.appviewAgent.api.app.bsky.actor.searchActorsTypeahead(
request.params,
await ctx.appviewAuth(),
)
return {
encoding: 'application/json',
body: res.data,
}
},
})
}

0 comments on commit 7083c49

Please sign in to comment.