summaryrefslogtreecommitdiff
path: root/src/remote/activitypub
diff options
context:
space:
mode:
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 c288a2f009..b979bb1cd2 100644
--- a/src/remote/activitypub/resolve-person.ts
+++ b/src/remote/activitypub/resolve-person.ts
@@ -15,7 +15,7 @@ export default async (value, verifier?: string) => {
object.type !== 'Person' ||
typeof object.preferredUsername !== 'string' ||
!validateUsername(object.preferredUsername) ||
- !isValidName(object.name) ||
+ (object.name != '' && !isValidName(object.name)) ||
!isValidDescription(object.summary)
) {
throw new Error('invalid person');