diff --git a/packages/bsky/src/api/com/atproto/admin/getAccountInfos.ts b/packages/bsky/src/api/com/atproto/admin/getAccountInfos.ts index 971839d5afd..c10b55d1048 100644 --- a/packages/bsky/src/api/com/atproto/admin/getAccountInfos.ts +++ b/packages/bsky/src/api/com/atproto/admin/getAccountInfos.ts @@ -8,16 +8,16 @@ export default function (server: Server, ctx: AppContext) { auth: ctx.authVerifier.optionalStandardOrRole, handler: async ({ params, auth }) => { const { dids } = params - const { canViewTakedowns } = ctx.authVerifier.parseCreds(auth) + const { includeTakedowns } = ctx.authVerifier.parseCreds(auth) const actors = await ctx.hydrator.actor.getActors(dids, true) const infos = mapDefined(dids, (did) => { const info = actors.get(did) if (!info) return - if (info.takedownRef && !canViewTakedowns) return + if (info.takedownRef && !includeTakedowns) return const profileRecord = - !info.profileTakedownRef || canViewTakedowns + !info.profileTakedownRef || includeTakedowns ? info.profile : undefined return { diff --git a/packages/bsky/src/views/index.ts b/packages/bsky/src/views/index.ts index c38c99c4d55..424fc810aea 100644 --- a/packages/bsky/src/views/index.ts +++ b/packages/bsky/src/views/index.ts @@ -225,7 +225,7 @@ export class Views { return undefined } const listViewer = state.listViewers?.get(uri) - const labels = state.labels?.get(uri) ?? [] + const labels = state.labels?.get(uri)?.labels ?? [] const creator = new AtUri(uri).hostname return { uri, @@ -351,7 +351,7 @@ export class Views { if (!creator) return const viewer = state.feedgenViewers?.get(uri) const aggs = state.feedgenAggs?.get(uri) - const labels = state.labels?.get(uri) ?? [] + const labels = state.labels?.get(uri)?.labels ?? [] return { uri,