diff options
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/activitypub/actor.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/actor.ts b/server/helpers/custom-validators/activitypub/actor.ts index 675a7b663..a4b152722 100644 --- a/server/helpers/custom-validators/activitypub/actor.ts +++ b/server/helpers/custom-validators/activitypub/actor.ts | |||
@@ -60,11 +60,12 @@ function isActorDeleteActivityValid (activity: any) { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | function sanitizeAndCheckActorObject (actor: any) { | 62 | function sanitizeAndCheckActorObject (actor: any) { |
63 | if (!isActorTypeValid(actor.type)) return false | ||
64 | |||
63 | normalizeActor(actor) | 65 | normalizeActor(actor) |
64 | 66 | ||
65 | return exists(actor) && | 67 | return exists(actor) && |
66 | isActivityPubUrlValid(actor.id) && | 68 | isActivityPubUrlValid(actor.id) && |
67 | isActorTypeValid(actor.type) && | ||
68 | isActivityPubUrlValid(actor.inbox) && | 69 | isActivityPubUrlValid(actor.inbox) && |
69 | isActorPreferredUsernameValid(actor.preferredUsername) && | 70 | isActorPreferredUsernameValid(actor.preferredUsername) && |
70 | isActivityPubUrlValid(actor.url) && | 71 | isActivityPubUrlValid(actor.url) && |