Merge pull request #981 from pixelfed/frontend-ui-refactor

Update AP deliver job
pull/1005/head
daniel 2019-03-07 22:52:09 -07:00 zatwierdzone przez GitHub
commit 3a89d87a12
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -80,7 +80,10 @@ class StatusActivityPubDeliver implements ShouldQueue
foreach($audience as $url) {
$headers = HttpSignature::sign($profile, $url, $activity);
yield function() use ($client, $url, $activity) {
return $client->requestAsync('POST', $url, $headers, $activity);
return $client->requestAsync('POST', $url, [
'headers' => $headers,
'body' => $payload
]);
};
}
};