1
0
forked from mirror/misskey

Merge pull request #1314 from akihikodaki/host

Add host_lower to User
This commit is contained in:
syuilo 2018-03-27 16:00:24 +09:00 committed by GitHub
commit 54eab4395a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export type IUser = {
is_suspended: boolean; is_suspended: boolean;
keywords: string[]; keywords: string[];
host: string; host: string;
host_lower: string;
account: { account: {
keypair: string; keypair: string;
email: string; email: string;

View File

@ -120,6 +120,7 @@ export default async (req: express.Request, res: express.Response) => {
username: username, username: username,
username_lower: username.toLowerCase(), username_lower: username.toLowerCase(),
host: null, host: null,
host_lower: null,
account: { account: {
keypair: generateKeypair(), keypair: generateKeypair(),
token: secret, token: secret,

View File

@ -0,0 +1 @@
db.users.update({ }, { $set: { host_lower: null } }, { multi: true });