mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 07:16:43 -06:00
✌️
This commit is contained in:
parent
6b1dc866a8
commit
94e48ba122
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||
object.type !== 'Person' ||
|
||||
typeof object.preferredUsername !== 'string' ||
|
||||
!validateUsername(object.preferredUsername) ||
|
||||
!isValidName(object.name == '' ? null : object.name) ||
|
||||
!isValidDescription(object.summary)
|
||||
!isValidName(object.name == '' ? null : object.name)
|
||||
) {
|
||||
log(`invalid person: ${JSON.stringify(object, null, 2)}`);
|
||||
throw new Error('invalid person');
|
||||
|
|
Loading…
Reference in a new issue