mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
Merge pull request #984 from pixelfed/frontend-ui-refactor
Update AP deliver job
This commit is contained in:
commit
1a185c28d0
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
'timeout' => config('pixelfed.ap_delivery_timeout')
|
'timeout' => config('pixelfed.ap_delivery_timeout')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$requests = function() use ($client, $activity, $profile) {
|
$requests = function() use ($client, $activity, $profile, $payload) {
|
||||||
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, $headers) {
|
yield function() use ($client, $url, $activity, $headers, $payload) {
|
||||||
return $client->requestAsync('POST', $url, [
|
return $client->requestAsync('POST', $url, [
|
||||||
'curl' => [
|
'curl' => [
|
||||||
CURLOPT_HTTPHEADER => $headers,
|
CURLOPT_HTTPHEADER => $headers,
|
||||||
|
|
Loading…
Reference in a new issue