From 31e67a5a0276778d5127a4f91d1dd4da95dc9fd5 Mon Sep 17 00:00:00 2001 From: Daniel Holmgren Date: Tue, 12 Mar 2024 16:01:28 -0500 Subject: [PATCH] Remove sig in label hydration (#2295) 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)