Browse Source

Update AP deliver job

Daniel Supernault 6 years ago
parent
commit
87e856c001
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/Jobs/StatusPipeline/StatusActivityPubDeliver.php

+ 5 - 2
app/Jobs/StatusPipeline/StatusActivityPubDeliver.php

@@ -81,8 +81,11 @@ class StatusActivityPubDeliver implements ShouldQueue
                 $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, [
                     return $client->requestAsync('POST', $url, [
-                        'headers' => $headers, 
-                        'body' => $payload
+                        'curl' => [
+                            CURLOPT_HTTPHEADER => $headers, 
+                            CURLOPT_POSTFIELDS => $payload,
+                            CURLOPT_HEADER => true
+                        ]
                     ]);
                     ]);
                 };
                 };
             }
             }