diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-09 05:37:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-09 05:37:50 +0900 |
| commit | 94e48ba122854a89ce2a2f8979b9b62c0d3f6817 (patch) | |
| tree | 652927275a4f08ddac909b53325319dcc009f449 /src/remote/activitypub/objects | |
| parent | :v: (diff) | |
| download | misskey-94e48ba122854a89ce2a2f8979b9b62c0d3f6817.tar.gz misskey-94e48ba122854a89ce2a2f8979b9b62c0d3f6817.tar.bz2 misskey-94e48ba122854a89ce2a2f8979b9b62c0d3f6817.zip | |
:v:
Diffstat (limited to 'src/remote/activitypub/objects')
| -rw-r--r-- | src/remote/activitypub/objects/person.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/remote/activitypub/objects/person.ts b/src/remote/activitypub/objects/person.ts index 151b4a7a79..c5119fb853 100644 --- a/src/remote/activitypub/objects/person.ts +++ b/src/remote/activitypub/objects/person.ts @@ -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'); |