forked from mirror/pixelfed
Update AP deliver job
This commit is contained in:
parent
4e978b7a56
commit
87e856c001
|
@ -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,
|
'curl' => [
|
||||||
'body' => $payload
|
CURLOPT_HTTPHEADER => $headers,
|
||||||
|
CURLOPT_POSTFIELDS => $payload,
|
||||||
|
CURLOPT_HEADER => true
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue