From d28a5ea67ffc649599ad915cc0bcbbe05738edc6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 7 Mar 2019 23:04:35 -0700 Subject: [PATCH] Update AP deliver job --- app/Jobs/StatusPipeline/StatusActivityPubDeliver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php index edfbddb4..45977c39 100644 --- a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php +++ b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php @@ -76,10 +76,10 @@ class StatusActivityPubDeliver implements ShouldQueue 'timeout' => config('pixelfed.ap_delivery_timeout') ]); - $requests = function() use ($client, $activity, $profile) { + $requests = function() use ($client, $activity, $profile, $payload) { foreach($audience as $url) { $headers = HttpSignature::sign($profile, $url, $activity); - yield function() use ($client, $url, $activity, $headers) { + yield function() use ($client, $url, $activity, $headers, $payload) { return $client->requestAsync('POST', $url, [ 'curl' => [ CURLOPT_HTTPHEADER => $headers,