1
0
Fork 0
forked from mirror/pixelfed

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

View file

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