From b8fde1aef390a783378da43599a6f97126738210 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 12 Mar 2024 14:52:51 -0500 Subject: [PATCH] remove sig in label hydration --- packages/bsky/src/hydration/label.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/bsky/src/hydration/label.ts b/packages/bsky/src/hydration/label.ts index 458d46fcfc5..9b47e0454ae 100644 --- a/packages/bsky/src/hydration/label.ts +++ b/packages/bsky/src/hydration/label.ts @@ -40,8 +40,9 @@ export class LabelHydrator { if (!subjects.length || !issuers.length) return new HydrationMap() 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)