Skip to content

Commit

Permalink
🐛 include takedowns in post thread for admins (#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Jul 17, 2024
1 parent f7bf2dd commit 5d2fdeb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/bsky/src/api/app/bsky/feed/getPostThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ export default function (server: Server, ctx: AppContext) {
server.app.bsky.feed.getPostThread({
auth: ctx.authVerifier.optionalStandardOrRole,
handler: async ({ params, auth, req, res }) => {
const { viewer } = ctx.authVerifier.parseCreds(auth)
const { viewer, includeTakedowns } = ctx.authVerifier.parseCreds(auth)
const labelers = ctx.reqLabelers(req)
const hydrateCtx = await ctx.hydrator.createContext({ labelers, viewer })
const hydrateCtx = await ctx.hydrator.createContext({
labelers,
viewer,
includeTakedowns,
})

let result: OutputSchema
try {
Expand Down

0 comments on commit 5d2fdeb

Please sign in to comment.