From 938e721e91e08f123a0ffb240101e05cda85d51c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 21 May 2020 20:29:51 -0600 Subject: [PATCH] Update InboxValidator --- app/Jobs/InboxPipeline/InboxValidator.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Jobs/InboxPipeline/InboxValidator.php b/app/Jobs/InboxPipeline/InboxValidator.php index fb2e2488..570bfe31 100644 --- a/app/Jobs/InboxPipeline/InboxValidator.php +++ b/app/Jobs/InboxPipeline/InboxValidator.php @@ -61,9 +61,11 @@ class InboxValidator implements ShouldQueue } if($this->verifySignature($headers, $profile, $payload) == true) { - InboxWorker::dispatchNow($headers, $profile, $payload)->onQueue('high'); + dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload)); + return; } else if($this->blindKeyRotation($headers, $profile, $payload) == true) { - InboxWorker::dispatchNow($headers, $profile, $payload)->onQueue('high'); + dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload)); + return; } else { return; } @@ -115,7 +117,7 @@ class InboxValidator implements ShouldQueue } $pkey = openssl_pkey_get_public($actor->public_key); $inboxPath = "/users/{$profile->username}/inbox"; - list($verified, $headers) = HTTPSignature::verify($pkey, $signatureData, $headers, $inboxPath, $body); + list($verified, $headers) = HttpSignature::verify($pkey, $signatureData, $headers, $inboxPath, $body); if($verified == 1) { return true; } else {