Skip to content

Commit

Permalink
removed new account label, removed ozone label lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bossett committed Nov 3, 2024
1 parent dbbf329 commit 8477a58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/getNewLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:')) {
Expand Down
6 changes: 6 additions & 0 deletions src/lib/getUserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class UserDetailsFetch extends CachedFetch {
{},
)

/* REMOVING OZONE LOOKUP FOR CLEANUP
const labelsFetch = await fetch(
`${
env.OZONE_URL
Expand All @@ -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]) &&
Expand All @@ -85,6 +90,7 @@ class UserDetailsFetch extends CachedFetch {
`${did} from ozone ${JSON.stringify(labelsMap[did])}`,
)
}
*/

this.results.set(did, {
data: this.compressData(profilesMap[did]),
Expand Down

0 comments on commit 8477a58

Please sign in to comment.