1
0
Fork 0

Merge pull request #981 from pixelfed/frontend-ui-refactor

Update AP deliver job
This commit is contained in:
daniel 2019-03-07 22:52:09 -07:00 committed by GitHub
commit 3a89d87a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
]);
};
}
};