Merge pull request #1179 from mnd/peertube-interoperability-fix

Allow to follow to PeerTube 3.0.0 users
feat/package-node-npm-engines-update
Carl Schwan 2022-05-12 11:06:10 +02:00 zatwierdzone przez GitHub
commit d868df186b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -420,7 +420,7 @@ class ConfigService {
if ($request->getType() === Request::TYPE_GET) {
$request->addHeader(
'Accept', 'application/json; profile="https://www.w3.org/ns/activitystreams"'
'Accept', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
);
}

Wyświetl plik

@ -167,6 +167,9 @@ class CurlService {
}
$url = $this->get('Link.@attributes.template', $result, '');
if ($url === '') {
throw new HostMetaException('Failed to get URL');
}
$host = parse_url($url, PHP_URL_HOST);
$protocols = [parse_url($url, PHP_URL_SCHEME)];

Wyświetl plik

@ -131,7 +131,7 @@ class SignatureService {
$localActor = $this->actorsRequest->getFromId($queue->getAuthor());
$headersElements = ['content-length', 'date', 'host', 'digest'];
$headersElements = ['(request-target)', 'content-length', 'date', 'host', 'digest'];
$allElements = [
'(request-target)' => 'post ' . $path->getPath(),
'date' => $date,