mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ActivityPubFetchService, fix Friendica bug
This commit is contained in:
parent
1068b09146
commit
e4edc6f192
1 changed files with 7 additions and 1 deletions
|
@ -28,7 +28,13 @@ class ActivityPubFetchService
|
||||||
$headers['User-Agent'] = 'PixelFedBot/1.0.0 (Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
|
$headers['User-Agent'] = 'PixelFedBot/1.0.0 (Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$res = Http::withOptions(['allow_redirects' => false])
|
$res = Http::withoutVerifying()
|
||||||
|
->withOptions([
|
||||||
|
'allow_redirects' => [
|
||||||
|
'max' => 2,
|
||||||
|
'protocols' => ['https'],
|
||||||
|
]
|
||||||
|
])
|
||||||
->withHeaders($headers)
|
->withHeaders($headers)
|
||||||
->timeout(30)
|
->timeout(30)
|
||||||
->connectTimeout(5)
|
->connectTimeout(5)
|
||||||
|
|
Loading…
Reference in a new issue