mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 12:23:09 +02:00
Fix bug
This commit is contained in:
parent
1992b08dcf
commit
f59209aaa3
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue