diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index c2a7a6da3..034c7bbf7 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -285,10 +285,10 @@ class Helpers { } } - if(!self::validateUrl($res['id']) || + if(!self::validateUrl($activity['object']['id']) || !self::validateUrl($activity['object']['attributedTo']) ) { - abort(400, 'Invalid object url'); + return; } $idDomain = parse_url($res['id'], PHP_URL_HOST); @@ -300,7 +300,7 @@ class Helpers { $actorDomain !== $urlDomain || $idDomain !== $actorDomain ) { - abort(400, 'Invalid object'); + return; } $profile = self::profileFirstOrNew($activity['object']['attributedTo']);