From 3679332114326ed688ba5b0d8f2e882fca9b25e4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Jun 2019 20:35:32 -0600 Subject: [PATCH] Update InboxValidator job --- app/Jobs/InboxPipeline/InboxValidator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/InboxPipeline/InboxValidator.php b/app/Jobs/InboxPipeline/InboxValidator.php index 718c7304..9a595c99 100644 --- a/app/Jobs/InboxPipeline/InboxValidator.php +++ b/app/Jobs/InboxPipeline/InboxValidator.php @@ -48,12 +48,12 @@ class InboxValidator implements ShouldQueue $profile = Profile::whereNull('domain')->whereUsername($username)->first(); - if(empty($profile)) { - return; + if(empty($profile) || empty($headers) || empty($payload)) { + return true; } if($profile->status != null) { - return; + return true; } if($this->verifySignature($headers, $profile, $payload) == true) {