From 8477a585576f61035e902614dbd70d2d2632261c Mon Sep 17 00:00:00 2001 From: Bossett Date: Sun, 3 Nov 2024 18:16:36 +0000 Subject: [PATCH] removed new account label, removed ozone label lookup --- src/lib/getNewLabel.ts | 4 ++++ src/lib/getUserDetails.ts | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/lib/getNewLabel.ts b/src/lib/getNewLabel.ts index 17d7da6..878aa85 100644 --- a/src/lib/getNewLabel.ts +++ b/src/lib/getNewLabel.ts @@ -79,10 +79,14 @@ export async function getNewLabel({ }) if (authorFeed[0].post.uri === post && isFullFeedHistory) { + /* REMOVING NEW ACCOUNT LABEL + if (new Date(authorFeed[0].post.indexedAt).getTime() > watchedFrom) // current post is their first ever // and happened in the watched period createLabels.add('newaccount') + + */ } switch (did.startsWith('did:plc:')) { diff --git a/src/lib/getUserDetails.ts b/src/lib/getUserDetails.ts index 366abb1..ee6893d 100644 --- a/src/lib/getUserDetails.ts +++ b/src/lib/getUserDetails.ts @@ -51,6 +51,8 @@ class UserDetailsFetch extends CachedFetch { {}, ) + /* REMOVING OZONE LOOKUP FOR CLEANUP + const labelsFetch = await fetch( `${ env.OZONE_URL @@ -72,9 +74,12 @@ class UserDetailsFetch extends CachedFetch { map[label.uri].push(label) return map }, {}) + + */ for (const did of actorsChunk) { if (profilesMap[did]) { + /* REMOVING OZONE LOOKUP FOR CLEANUP if ( labelsMap[did] && Array.isArray(labelsMap[did]) && @@ -85,6 +90,7 @@ class UserDetailsFetch extends CachedFetch { `${did} from ozone ${JSON.stringify(labelsMap[did])}`, ) } + */ this.results.set(did, { data: this.compressData(profilesMap[did]),