Skip to content

Commit

Permalink
✨ Let mods search posts on author feed (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Apr 8, 2024
1 parent 2e2a97b commit f5c830a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/ozone/src/api/proxied.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ export default function (server: Server, ctx: AppContext) {
},
})

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

server.app.bsky.feed.getPostThread({
auth: ctx.authVerifier.moderator,
handler: async (request) => {
Expand Down

0 comments on commit f5c830a

Please sign in to comment.