From 410bc5666c3da6e914e494a7a4cd10adee308fd0 Mon Sep 17 00:00:00 2001 From: Daniel Holmgren Date: Wed, 13 Mar 2024 18:46:00 -0500 Subject: [PATCH] Second pass on no false negs in labels (#2315) second pass on no false negs in labels --- packages/ozone/src/mod-service/index.ts | 1 - packages/ozone/src/mod-service/util.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/ozone/src/mod-service/index.ts b/packages/ozone/src/mod-service/index.ts index c1381e84ea9..2ce290cbbce 100644 --- a/packages/ozone/src/mod-service/index.ts +++ b/packages/ozone/src/mod-service/index.ts @@ -827,7 +827,6 @@ export class ModerationService { uri, cid: cid ?? undefined, val, - neg: false, cts: new Date().toISOString(), })) const toNegate = negate.map((val) => ({ diff --git a/packages/ozone/src/mod-service/util.ts b/packages/ozone/src/mod-service/util.ts index 89a7bcd7ae4..c07ce48de8c 100644 --- a/packages/ozone/src/mod-service/util.ts +++ b/packages/ozone/src/mod-service/util.ts @@ -47,7 +47,7 @@ export const signLabel = async ( uri, cid, val, - neg, + neg: neg === true ? true : undefined, cts, exp, }) as Label