This commit is contained in:
syuilo
2018-04-05 22:49:41 +09:00
parent a6abcd1aa5
commit 5f8ab58446
4 changed files with 62 additions and 53 deletions

View File

@@ -11,7 +11,7 @@ export default async (value, verifier?: string) => {
const object = await resolver.resolve(value) as any;
if (
object === null ||
object == null ||
object.type !== 'Person' ||
typeof object.preferredUsername !== 'string' ||
!validateUsername(object.preferredUsername) ||