mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
✌️
This commit is contained in:
parent
6b1dc866a8
commit
94e48ba122
@ -48,8 +48,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
object.type !== 'Person' ||
|
object.type !== 'Person' ||
|
||||||
typeof object.preferredUsername !== 'string' ||
|
typeof object.preferredUsername !== 'string' ||
|
||||||
!validateUsername(object.preferredUsername) ||
|
!validateUsername(object.preferredUsername) ||
|
||||||
!isValidName(object.name == '' ? null : object.name) ||
|
!isValidName(object.name == '' ? null : object.name)
|
||||||
!isValidDescription(object.summary)
|
|
||||||
) {
|
) {
|
||||||
log(`invalid person: ${JSON.stringify(object, null, 2)}`);
|
log(`invalid person: ${JSON.stringify(object, null, 2)}`);
|
||||||
throw new Error('invalid person');
|
throw new Error('invalid person');
|
||||||
|
Loading…
Reference in New Issue
Block a user