Update ActivityPubFetchService, fix Friendica bug

pull/5092/head
Daniel Supernault 2024-05-17 21:45:42 -06:00
rodzic 1068b09146
commit e4edc6f192
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -28,7 +28,13 @@ class ActivityPubFetchService
$headers['User-Agent'] = 'PixelFedBot/1.0.0 (Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
try {
$res = Http::withOptions(['allow_redirects' => false])
$res = Http::withoutVerifying()
->withOptions([
'allow_redirects' => [
'max' => 2,
'protocols' => ['https'],
]
])
->withHeaders($headers)
->timeout(30)
->connectTimeout(5)