Update HttpSignature

This commit is contained in:
Daniel Supernault 2023-04-19 19:09:55 -06:00
parent 9ffe5941d7
commit 66c0b3577f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,12 +18,12 @@ class ActivityPubFetchService
}
$baseHeaders = [
'Accept' => 'application/activity+json',
'Accept' => 'application/activity+json, application/ld+json',
'User-Agent' => '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')'
];
$headers = HttpSignature::instanceActorSign($url, false, $baseHeaders);
$headers['Accept'] = 'application/activity+json';
$headers['Accept'] = 'application/activity+json, application/ld+json';
$headers['User-Agent'] = '(Pixelfed/'.config('pixelfed.version').'; +'.config('app.url').')';
try {