1
0
Fork 0
forked from mirror/pixelfed

Update AP deliver job

This commit is contained in:
Daniel Supernault 2019-03-07 22:56:18 -07:00
parent 4e978b7a56
commit 87e856c001
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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
]
]);
};
}