From 575712a5c970ea1edeb6b44a35a095fc08193a3d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Jun 2018 08:57:52 +0200 Subject: Fix HTTP fallback when having videostream issues on firefox --- server/helpers/custom-validators/activitypub/actor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') 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) { } function normalizeActor (actor: any) { - if (!actor) return + if (!actor || !actor.url) return if (typeof actor.url !== 'string') { actor.url = actor.url.href || actor.url.url -- cgit v1.2.3