Update AP deliver job

pull/981/head
Daniel Supernault 7 years ago
parent fadfd8349b
commit 4e978b7a56
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -80,7 +80,10 @@ class StatusActivityPubDeliver implements ShouldQueue
foreach($audience as $url) {
$headers = HttpSignature::sign($profile, $url, $activity);
yield function() use ($client, $url, $activity) {
return $client->requestAsync('POST', $url, $headers, $activity);
return $client->requestAsync('POST', $url, [
'headers' => $headers,
'body' => $payload
]);
};
}
};

Loading…
Cancel
Save