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

Update AP deliver job
pull/1005/head
daniel 7 years ago committed by GitHub
commit 18367a9aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save