Update AP deliver job

This commit is contained in:
Daniel Supernault 2019-03-07 23:27:22 -07:00
parent c817d4cfda
commit 4bfe30e5b5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -94,10 +94,10 @@ class StatusActivityPubDeliver implements ShouldQueue
$pool = new Pool($client, $requests, [
'concurrency' => config('pixelfed.ap_delivery_concurrency'),
'fulfilled' => function ($response, $index) {
Log::info('AP:deliver:success - ' . $response);
Log::info('AP:deliver:success - ' . json_encode($response));
},
'rejected' => function ($reason, $index) {
Log::info('AP:deliver:rejected - ' . $reason);
Log::info('AP:deliver:rejected - ' . json_encode($reason));
}
]);
$promise = $pool->promise();