From e3ab990961397ba821faaf3cee7d872175f77ffa Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 2 Nov 2026 13:06:47 -0700 Subject: changeid: keep a frozen or evicted account frozen under its new id Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6VN9xvnX1cgvV6hrUV --- lib/changeid.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/changeid.ts') diff --git a/lib/changeid.ts b/lib/changeid.ts index 1c6a6688..d4eca441 100644 --- a/lib/changeid.ts +++ b/lib/changeid.ts @@ -116,6 +116,11 @@ export default async function changeid(un: string) { } catch (e) {} } + // Freezes and evictions are keyed by uid, so carry them to the new id or a + // rekey (which the blocked-address check triggers on its own) lifts them. + for (const set of ["blacklist", "evicted"]) + if (await db.sIsMember(set, id)) await db.sAdd(set, nid); + l(`SECURITY: rekeyed ${un} from ${id} to ${nid}`); return nid; } -- cgit v1.2.3