mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-23 13:00:46 +00:00
Merge pull request #981 from pixelfed/frontend-ui-refactor
Update AP deliver job
This commit is contained in:
commit
3a89d87a12
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue