Skip to content

Commit

Permalink
Remove sig in label hydration (#2295)
Browse files Browse the repository at this point in the history
remove sig in label hydration
  • Loading branch information
dholms authored Mar 12, 2024
1 parent 2802880 commit 31e67a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/bsky/src/hydration/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export class LabelHydrator {
if (!subjects.length || !issuers.length) return new HydrationMap<Label[]>()
const res = await this.dataplane.getLabels({ subjects, issuers })
return res.labels.reduce((acc, cur) => {
const label = parseJsonBytes(cur) as Label | undefined
if (!label || label.neg) return acc
const parsed = parseJsonBytes(cur) as Label | undefined
if (!parsed || parsed.neg) return acc
const { sig: _, ...label } = parsed
const entry = acc.get(label.uri)
if (entry) {
entry.push(label)
Expand Down

0 comments on commit 31e67a5

Please sign in to comment.