From 2117982d78cda26ae0e962165f6b277f606cfdcd Mon Sep 17 00:00:00 2001 From: Daniel Holmgren Date: Tue, 12 Mar 2024 14:34:36 -0500 Subject: [PATCH] Fix label formatting in appview-v1 (#2294) fix label formatting in appview-v1 --- packages/bsky/src/services/label/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/bsky/src/services/label/index.ts b/packages/bsky/src/services/label/index.ts index f4c11295da7..2436191f9d9 100644 --- a/packages/bsky/src/services/label/index.ts +++ b/packages/bsky/src/services/label/index.ts @@ -201,11 +201,15 @@ const fetchLabelsForSubjects = async ( .selectAll() .execute() const labelMap = res.reduce((acc, cur) => { + const { src, uri, cid, val, neg, cts } = cur acc[cur.uri] ??= [] acc[cur.uri].push({ - ...cur, - cid: cur.cid === '' ? undefined : cur.cid, - neg: cur.neg, + src, + uri, + cid: cid === '' ? undefined : cid, + val, + neg: neg, + cts, }) return acc }, {} as Record)