This commit is contained in:
syuilo 2018-05-16 16:50:36 +09:00
parent 1992b08dcf
commit f59209aaa3

View File

@ -49,6 +49,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
object == null || object == null ||
object.type !== 'Person' || object.type !== 'Person' ||
typeof object.preferredUsername !== 'string' || typeof object.preferredUsername !== 'string' ||
typeof object.inbox !== 'string' ||
!validateUsername(object.preferredUsername) || !validateUsername(object.preferredUsername) ||
!isValidName(object.name == '' ? null : object.name) !isValidName(object.name == '' ? null : object.name)
) { ) {