forked from mirror/pixelfed
Update StatusPipeline
This commit is contained in:
parent
4b06d3565a
commit
015c2f9954
2 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
$payload = json_encode($activity);
|
$payload = json_encode($activity);
|
||||||
|
|
||||||
$client = new Client([
|
$client = new Client([
|
||||||
'timeout' => config('pixelfed.ap_delivery_timeout')
|
'timeout' => config('federation.activitypub.delivery.timeout')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$requests = function($audience) use ($client, $activity, $profile, $payload) {
|
$requests = function($audience) use ($client, $activity, $profile, $payload) {
|
||||||
|
@ -90,7 +90,7 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
};
|
};
|
||||||
|
|
||||||
$pool = new Pool($client, $requests($audience), [
|
$pool = new Pool($client, $requests($audience), [
|
||||||
'concurrency' => config('pixelfed.ap_delivery_concurrency'),
|
'concurrency' => config('federation.activitypub.delivery.concurrency'),
|
||||||
'fulfilled' => function ($response, $index) {
|
'fulfilled' => function ($response, $index) {
|
||||||
},
|
},
|
||||||
'rejected' => function ($reason, $index) {
|
'rejected' => function ($reason, $index) {
|
||||||
|
|
|
@ -125,7 +125,7 @@ class StatusDelete implements ShouldQueue
|
||||||
$payload = json_encode($activity);
|
$payload = json_encode($activity);
|
||||||
|
|
||||||
$client = new Client([
|
$client = new Client([
|
||||||
'timeout' => config('pixelfed.ap_delivery_timeout')
|
'timeout' => config('federation.activitypub.delivery.timeout')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$requests = function($audience) use ($client, $activity, $profile, $payload) {
|
$requests = function($audience) use ($client, $activity, $profile, $payload) {
|
||||||
|
@ -144,7 +144,7 @@ class StatusDelete implements ShouldQueue
|
||||||
};
|
};
|
||||||
|
|
||||||
$pool = new Pool($client, $requests($audience), [
|
$pool = new Pool($client, $requests($audience), [
|
||||||
'concurrency' => config('pixelfed.ap_delivery_concurrency'),
|
'concurrency' => config('federation.activitypub.delivery.concurrency'),
|
||||||
'fulfilled' => function ($response, $index) {
|
'fulfilled' => function ($response, $index) {
|
||||||
},
|
},
|
||||||
'rejected' => function ($reason, $index) {
|
'rejected' => function ($reason, $index) {
|
||||||
|
|
Loading…
Reference in a new issue