Skip to content

Commit

Permalink
fix more build errs
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Mar 12, 2024
1 parent 77a2f18 commit 8ef4c3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/bsky/src/api/com/atproto/admin/getAccountInfos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/bsky/src/views/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8ef4c3f

Please sign in to comment.