From a7417d869a5d3856f92679c548dcd475c5f06652 Mon Sep 17 00:00:00 2001 From: Bossett Date: Tue, 5 Nov 2024 08:00:40 +0000 Subject: [PATCH] newhandle -> changedhandle --- src/lib/getNewLabel.ts | 4 ++-- src/lib/processCommit.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/getNewLabel.ts b/src/lib/getNewLabel.ts index 878aa85..9b7f3aa 100644 --- a/src/lib/getNewLabel.ts +++ b/src/lib/getNewLabel.ts @@ -128,7 +128,7 @@ export async function getNewLabel({ thisIsEventPost ) { // this post is the first post after the change - createLabels.add('newhandle') + createLabels.add('changedhandle') } postAfterChange = true } @@ -154,7 +154,7 @@ export async function getNewLabel({ if (thisPost) { if (postBeforeChange && !postAfterChange) { if (new Date(thisPost.indexedAt).getTime() > handleCreationTime) - createLabels.add('newhandle') + createLabels.add('changedhandle') } const record = thisPost.record as AppBskyFeedPost.Record diff --git a/src/lib/processCommit.ts b/src/lib/processCommit.ts index 99c0f7a..6c27251 100644 --- a/src/lib/processCommit.ts +++ b/src/lib/processCommit.ts @@ -185,7 +185,7 @@ export function _processCommit(commit: Commit): Promise { labels: currentLabels, labeller: agentDid, watchedFrom: handleExpiryThreshold, - handlesToExpire: ['newhandle', 'newaccount'], + handlesToExpire: ['changedhandle'], }).catch((e) => { const op: OperationsResult = { create: [], @@ -228,7 +228,7 @@ export function _processCommit(commit: Commit): Promise { insertListItemOperation(did, labelOperations) // anything in this list 'refreshed' when it re-triggers - const handlesToReapply = ['newhandle'] + const handlesToReapply = ['changedhandle'] labelOperations.create = labelOperations.create.filter( (label: string) => {