summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-27 16:00:24 +0900
committerGitHub <noreply@github.com>2018-03-27 16:00:24 +0900
commit54eab4395a1243457457446e2a6111823bf79262 (patch)
treea83e67fc899b0290ea91e585d64e13085728d497 /src/api
parentUpdate config.md (diff)
parentAdd host_lower to User (diff)
downloadmisskey-54eab4395a1243457457446e2a6111823bf79262.tar.gz
misskey-54eab4395a1243457457446e2a6111823bf79262.tar.bz2
misskey-54eab4395a1243457457446e2a6111823bf79262.zip
Merge pull request #1314 from akihikodaki/host
Add host_lower to User
Diffstat (limited to 'src/api')
-rw-r--r--src/api/models/user.ts1
-rw-r--r--src/api/private/signup.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/api/models/user.ts b/src/api/models/user.ts
index 63f79908e3..46d32963bc 100644
--- a/src/api/models/user.ts
+++ b/src/api/models/user.ts
@@ -59,6 +59,7 @@ export type IUser = {
is_suspended: boolean;
keywords: string[];
host: string;
+ host_lower: string;
account: {
keypair: string;
email: string;
diff --git a/src/api/private/signup.ts b/src/api/private/signup.ts
index a4c06b5f5e..280153d4f5 100644
--- a/src/api/private/signup.ts
+++ b/src/api/private/signup.ts
@@ -120,6 +120,7 @@ export default async (req: express.Request, res: express.Response) => {
username: username,
username_lower: username.toLowerCase(),
host: null,
+ host_lower: null,
account: {
keypair: generateKeypair(),
token: secret,