diff --git a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php index edfbddb4..45977c39 100644 --- a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php +++ b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php @@ -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,