From 87e856c0011b31828518b2d45ff8063092994a60 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 7 Mar 2019 22:56:18 -0700 Subject: [PATCH] Update AP deliver job --- app/Jobs/StatusPipeline/StatusActivityPubDeliver.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php index d66f2529..6f3a4fc8 100644 --- a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php +++ b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php @@ -81,8 +81,11 @@ class StatusActivityPubDeliver implements ShouldQueue $headers = HttpSignature::sign($profile, $url, $activity); yield function() use ($client, $url, $activity) { return $client->requestAsync('POST', $url, [ - 'headers' => $headers, - 'body' => $payload + 'curl' => [ + CURLOPT_HTTPHEADER => $headers, + CURLOPT_POSTFIELDS => $payload, + CURLOPT_HEADER => true + ] ]); }; }