1
0
forked from mirror/misskey

Do not save 名無し as the name of a new user

This commit is contained in:
Akihiko Odaki 2018-04-06 01:37:24 +09:00
parent f0e8e6392b
commit d99d628f50

View File

@ -47,7 +47,6 @@ export default async (req: express.Request, res: express.Response) => {
const username = req.body['username']; const username = req.body['username'];
const password = req.body['password']; const password = req.body['password'];
const name = '名無し';
// Validate username // Validate username
if (!validateUsername(username)) { if (!validateUsername(username)) {
@ -113,7 +112,7 @@ export default async (req: express.Request, res: express.Response) => {
description: null, description: null,
followersCount: 0, followersCount: 0,
followingCount: 0, followingCount: 0,
name: name, name: null,
postsCount: 0, postsCount: 0,
driveCapacity: 1024 * 1024 * 128, // 128MiB driveCapacity: 1024 * 1024 * 128, // 128MiB
username: username, username: username,