Skip to content

Commit

Permalink
Appview: fix lookup for labeler via repo.getRecord (bluesky-social#2324)
Browse files Browse the repository at this point in the history
appview: fix lookup for labeler via repo.getRecord
  • Loading branch information
devinivy authored Mar 14, 2024
1 parent a1e1d93 commit 506614f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bsky/src/hydration/hydrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,10 @@ export class Hydrator {
undefined
)
} else if (collection === ids.AppBskyLabelerService) {
if (parsed.rkey !== 'self') return
const did = parsed.hostname
return (
(await this.label.getLabelers([uri], includeTakedowns)).get(uri) ??
(await this.label.getLabelers([did], includeTakedowns)).get(did) ??
undefined
)
} else if (collection === ids.AppBskyActorProfile) {
Expand Down

0 comments on commit 506614f

Please sign in to comment.