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

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

Wyświetl plik

@ -76,10 +76,10 @@ class StatusActivityPubDeliver implements ShouldQueue
'timeout' => config('pixelfed.ap_delivery_timeout')
]);
$requests = function() use ($client, $activity, $profile) {
$requests = function() use ($client, $activity, $profile, $payload) {
foreach($audience as $url) {
$headers = HttpSignature::sign($profile, $url, $activity);
yield function() use ($client, $url, $activity, $headers) {
yield function() use ($client, $url, $activity, $headers, $payload) {
return $client->requestAsync('POST', $url, [
'curl' => [
CURLOPT_HTTPHEADER => $headers,