From adfee03829e2956226c77fb8996d87165f3176ef Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 5 May 2023 16:41:24 -0400 Subject: rename handle to tag --- src/api/routes/auth/forgot.ts | 2 +- src/util/entities/User.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 7a791164..f832721f 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.handle}: ${e}`, + `Failed to send password reset email to ${user.tag}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index f658c286..85dc56ee 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -331,7 +331,7 @@ export class User extends BaseClass { } } - public get handle(): string { + public get tag(): string { const { pomeloEnabled } = Config.get().general; // if pomelo is enabled, global_name should be set @@ -417,7 +417,7 @@ export class User extends BaseClass { if (!Config.get().defaults.user.verified && email) { await Email.sendVerifyEmail(user, email).catch((e) => { console.error( - `Failed to send verification email to ${user.handle}: ${e}`, + `Failed to send verification email to ${user.tag}: ${e}`, ); }); } -- cgit 1.5.1