diff --git a/app/Services/ActivityPubFetchService.php b/app/Services/ActivityPubFetchService.php index b6b8202e4..94e9357a3 100644 --- a/app/Services/ActivityPubFetchService.php +++ b/app/Services/ActivityPubFetchService.php @@ -11,6 +11,10 @@ class ActivityPubFetchService { public static function get($url) { + if(!Helpers::validateUrl($url)) { + return 0; + } + $headers = HttpSignature::instanceActorSign($url, false, [ 'Accept' => 'application/activity+json, application/json', 'User-Agent' => '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')'