mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-02 08:05:58 +09:00
Fix bug
This commit is contained in:
parent
1992b08dcf
commit
f59209aaa3
@ -49,6 +49,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
||||
object == null ||
|
||||
object.type !== 'Person' ||
|
||||
typeof object.preferredUsername !== 'string' ||
|
||||
typeof object.inbox !== 'string' ||
|
||||
!validateUsername(object.preferredUsername) ||
|
||||
!isValidName(object.name == '' ? null : object.name)
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user