Update AP deliver job

This commit is contained in:
Daniel Supernault 2019-03-07 22:51:27 -07:00
parent fadfd8349b
commit 4e978b7a56
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 1 deletions

View File

@ -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
]);
};
}
};