diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routes/users.ts b/routes/users.ts index a058e7da..17bf5026 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -497,6 +497,12 @@ export default { if (typeof body[a] !== "undefined") user[a] = body[a]; } + // A v3 hand-off from the /migrate action. Not the same thing as + // `migrated`, which every account has carried since 2023. Only the + // server sets this, and the names registrar grants the name to a v3 + // key only while it is fresh. + if (body.migrated === true) user.v3migrated = Date.now(); + user.fresh = false; user.tip = Math.max(0, Math.min(1000, Number.parseInt(user.tip))); |
