Update AP deliver job

This commit is contained in:
Daniel Supernault 2019-03-07 23:04:35 -07:00
parent b6bb6e3cb5
commit d28a5ea67f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 2 deletions

View File

@ -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,