diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/custom-validators/activitypub/actor.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/actor.ts b/server/helpers/custom-validators/activitypub/actor.ts index 9a0bb32c1..c7a64e24d 100644 --- a/server/helpers/custom-validators/activitypub/actor.ts +++ b/server/helpers/custom-validators/activitypub/actor.ts | |||
@@ -92,7 +92,7 @@ function isActorUpdateActivityValid (activity: any) { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | function normalizeActor (actor: any) { | 94 | function normalizeActor (actor: any) { |
95 | if (!actor) return | 95 | if (!actor || !actor.url) return |
96 | 96 | ||
97 | if (typeof actor.url !== 'string') { | 97 | if (typeof actor.url !== 'string') { |
98 | actor.url = actor.url.href || actor.url.url | 98 | actor.url = actor.url.href || actor.url.url |