Update AP deliver job

This commit is contained in:
Daniel Supernault 2019-03-07 22:59:53 -07:00
parent 87e856c001
commit b6bb6e3cb5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -79,7 +79,7 @@ class StatusActivityPubDeliver implements ShouldQueue
$requests = function() use ($client, $activity, $profile) {
foreach($audience as $url) {
$headers = HttpSignature::sign($profile, $url, $activity);
yield function() use ($client, $url, $activity) {
yield function() use ($client, $url, $activity, $headers) {
return $client->requestAsync('POST', $url, [
'curl' => [
CURLOPT_HTTPHEADER => $headers,