summaryrefslogtreecommitdiff
path: root/src/remote/activitypub
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-06 22:15:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-06 22:15:31 +0900
commit2b02655a3f420ddf08015e7c048d4eda12290d1d (patch)
tree62f278e9daf760ee0859633e7cf82404a893154e /src/remote/activitypub
parentAdd todo (diff)
downloadmisskey-2b02655a3f420ddf08015e7c048d4eda12290d1d.tar.gz
misskey-2b02655a3f420ddf08015e7c048d4eda12290d1d.tar.bz2
misskey-2b02655a3f420ddf08015e7c048d4eda12290d1d.zip
Fix bug
Diffstat (limited to 'src/remote/activitypub')
-rw-r--r--src/remote/activitypub/resolve-person.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/resolve-person.ts b/src/remote/activitypub/resolve-person.ts
index 9cca50e416..39887ef776 100644
--- a/src/remote/activitypub/resolve-person.ts
+++ b/src/remote/activitypub/resolve-person.ts
@@ -24,7 +24,7 @@ export default async (value, verifier?: string) => {
object.type !== 'Person' ||
typeof object.preferredUsername !== 'string' ||
!validateUsername(object.preferredUsername) ||
- (object.name != '' && !isValidName(object.name)) ||
+ !isValidName(object.name == '' ? null : object.name) ||
!isValidDescription(object.summary)
) {
throw new Error('invalid person');